1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityPolicyReportRoleGrantPaths
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.DataSafe.getSecurityPolicyReportRoleGrantPaths

Explore with Pulumi AI

This data source provides the list of Security Policy Report Role Grant Paths in Oracle Cloud Infrastructure Data Safe service.

Retrieves a list of all role grant paths for a particular user.

The ListRoleGrantPaths operation returns only the role grant paths for the specified security policy report.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSecurityPolicyReportRoleGrantPaths = oci.DataSafe.getSecurityPolicyReportRoleGrantPaths({
    grantedRole: securityPolicyReportRoleGrantPathGrantedRole,
    grantee: securityPolicyReportRoleGrantPathGrantee,
    securityPolicyReportId: testSecurityPolicyReport.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_security_policy_report_role_grant_paths = oci.DataSafe.get_security_policy_report_role_grant_paths(granted_role=security_policy_report_role_grant_path_granted_role,
    grantee=security_policy_report_role_grant_path_grantee,
    security_policy_report_id=test_security_policy_report["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetSecurityPolicyReportRoleGrantPaths(ctx, &datasafe.GetSecurityPolicyReportRoleGrantPathsArgs{
			GrantedRole:            securityPolicyReportRoleGrantPathGrantedRole,
			Grantee:                securityPolicyReportRoleGrantPathGrantee,
			SecurityPolicyReportId: testSecurityPolicyReport.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSecurityPolicyReportRoleGrantPaths = Oci.DataSafe.GetSecurityPolicyReportRoleGrantPaths.Invoke(new()
    {
        GrantedRole = securityPolicyReportRoleGrantPathGrantedRole,
        Grantee = securityPolicyReportRoleGrantPathGrantee,
        SecurityPolicyReportId = testSecurityPolicyReport.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetSecurityPolicyReportRoleGrantPathsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testSecurityPolicyReportRoleGrantPaths = DataSafeFunctions.getSecurityPolicyReportRoleGrantPaths(GetSecurityPolicyReportRoleGrantPathsArgs.builder()
            .grantedRole(securityPolicyReportRoleGrantPathGrantedRole)
            .grantee(securityPolicyReportRoleGrantPathGrantee)
            .securityPolicyReportId(testSecurityPolicyReport.id())
            .build());

    }
}
Copy
variables:
  testSecurityPolicyReportRoleGrantPaths:
    fn::invoke:
      function: oci:DataSafe:getSecurityPolicyReportRoleGrantPaths
      arguments:
        grantedRole: ${securityPolicyReportRoleGrantPathGrantedRole}
        grantee: ${securityPolicyReportRoleGrantPathGrantee}
        securityPolicyReportId: ${testSecurityPolicyReport.id}
Copy

Using getSecurityPolicyReportRoleGrantPaths

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSecurityPolicyReportRoleGrantPaths(args: GetSecurityPolicyReportRoleGrantPathsArgs, opts?: InvokeOptions): Promise<GetSecurityPolicyReportRoleGrantPathsResult>
function getSecurityPolicyReportRoleGrantPathsOutput(args: GetSecurityPolicyReportRoleGrantPathsOutputArgs, opts?: InvokeOptions): Output<GetSecurityPolicyReportRoleGrantPathsResult>
Copy
def get_security_policy_report_role_grant_paths(filters: Optional[Sequence[_datasafe.GetSecurityPolicyReportRoleGrantPathsFilter]] = None,
                                                granted_role: Optional[str] = None,
                                                grantee: Optional[str] = None,
                                                security_policy_report_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetSecurityPolicyReportRoleGrantPathsResult
def get_security_policy_report_role_grant_paths_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetSecurityPolicyReportRoleGrantPathsFilterArgs]]]] = None,
                                                granted_role: Optional[pulumi.Input[str]] = None,
                                                grantee: Optional[pulumi.Input[str]] = None,
                                                security_policy_report_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetSecurityPolicyReportRoleGrantPathsResult]
Copy
func GetSecurityPolicyReportRoleGrantPaths(ctx *Context, args *GetSecurityPolicyReportRoleGrantPathsArgs, opts ...InvokeOption) (*GetSecurityPolicyReportRoleGrantPathsResult, error)
func GetSecurityPolicyReportRoleGrantPathsOutput(ctx *Context, args *GetSecurityPolicyReportRoleGrantPathsOutputArgs, opts ...InvokeOption) GetSecurityPolicyReportRoleGrantPathsResultOutput
Copy

> Note: This function is named GetSecurityPolicyReportRoleGrantPaths in the Go SDK.

public static class GetSecurityPolicyReportRoleGrantPaths 
{
    public static Task<GetSecurityPolicyReportRoleGrantPathsResult> InvokeAsync(GetSecurityPolicyReportRoleGrantPathsArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityPolicyReportRoleGrantPathsResult> Invoke(GetSecurityPolicyReportRoleGrantPathsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSecurityPolicyReportRoleGrantPathsResult> getSecurityPolicyReportRoleGrantPaths(GetSecurityPolicyReportRoleGrantPathsArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyReportRoleGrantPathsResult> getSecurityPolicyReportRoleGrantPaths(GetSecurityPolicyReportRoleGrantPathsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getSecurityPolicyReportRoleGrantPaths:getSecurityPolicyReportRoleGrantPaths
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

GrantedRole This property is required. string
A filter to return only items that match the specified role.
Grantee This property is required. string
A filter to return only items that match the specified grantee.
SecurityPolicyReportId This property is required. string
The OCID of the security policy report resource.
Filters Changes to this property will trigger replacement. List<GetSecurityPolicyReportRoleGrantPathsFilter>
GrantedRole This property is required. string
A filter to return only items that match the specified role.
Grantee This property is required. string
A filter to return only items that match the specified grantee.
SecurityPolicyReportId This property is required. string
The OCID of the security policy report resource.
Filters Changes to this property will trigger replacement. []GetSecurityPolicyReportRoleGrantPathsFilter
grantedRole This property is required. String
A filter to return only items that match the specified role.
grantee This property is required. String
A filter to return only items that match the specified grantee.
securityPolicyReportId This property is required. String
The OCID of the security policy report resource.
filters Changes to this property will trigger replacement. List<GetSecurityPolicyReportRoleGrantPathsFilter>
grantedRole This property is required. string
A filter to return only items that match the specified role.
grantee This property is required. string
A filter to return only items that match the specified grantee.
securityPolicyReportId This property is required. string
The OCID of the security policy report resource.
filters Changes to this property will trigger replacement. GetSecurityPolicyReportRoleGrantPathsFilter[]
granted_role This property is required. str
A filter to return only items that match the specified role.
grantee This property is required. str
A filter to return only items that match the specified grantee.
security_policy_report_id This property is required. str
The OCID of the security policy report resource.
filters Changes to this property will trigger replacement. Sequence[datasafe.GetSecurityPolicyReportRoleGrantPathsFilter]
grantedRole This property is required. String
A filter to return only items that match the specified role.
grantee This property is required. String
A filter to return only items that match the specified grantee.
securityPolicyReportId This property is required. String
The OCID of the security policy report resource.
filters Changes to this property will trigger replacement. List<Property Map>

getSecurityPolicyReportRoleGrantPaths Result

The following output properties are available:

GrantedRole string
The name of the role.
Grantee string
Grantee is the user who can access the table.
Id string
The provider-assigned unique ID for this managed resource.
RoleGrantPathCollections List<GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection>
The list of role_grant_path_collection.
SecurityPolicyReportId string
Filters List<GetSecurityPolicyReportRoleGrantPathsFilter>
GrantedRole string
The name of the role.
Grantee string
Grantee is the user who can access the table.
Id string
The provider-assigned unique ID for this managed resource.
RoleGrantPathCollections []GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection
The list of role_grant_path_collection.
SecurityPolicyReportId string
Filters []GetSecurityPolicyReportRoleGrantPathsFilter
grantedRole String
The name of the role.
grantee String
Grantee is the user who can access the table.
id String
The provider-assigned unique ID for this managed resource.
roleGrantPathCollections List<GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection>
The list of role_grant_path_collection.
securityPolicyReportId String
filters List<GetSecurityPolicyReportRoleGrantPathsFilter>
grantedRole string
The name of the role.
grantee string
Grantee is the user who can access the table.
id string
The provider-assigned unique ID for this managed resource.
roleGrantPathCollections GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection[]
The list of role_grant_path_collection.
securityPolicyReportId string
filters GetSecurityPolicyReportRoleGrantPathsFilter[]
granted_role str
The name of the role.
grantee str
Grantee is the user who can access the table.
id str
The provider-assigned unique ID for this managed resource.
role_grant_path_collections Sequence[datasafe.GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection]
The list of role_grant_path_collection.
security_policy_report_id str
filters Sequence[datasafe.GetSecurityPolicyReportRoleGrantPathsFilter]
grantedRole String
The name of the role.
grantee String
Grantee is the user who can access the table.
id String
The provider-assigned unique ID for this managed resource.
roleGrantPathCollections List<Property Map>
The list of role_grant_path_collection.
securityPolicyReportId String
filters List<Property Map>

Supporting Types

GetSecurityPolicyReportRoleGrantPathsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection

Items This property is required. List<GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem>
An array of grant path summary objects.
Items This property is required. []GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem
An array of grant path summary objects.
items This property is required. List<GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem>
An array of grant path summary objects.
items This property is required. GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem[]
An array of grant path summary objects.
items This property is required. Sequence[datasafe.GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem]
An array of grant path summary objects.
items This property is required. List<Property Map>
An array of grant path summary objects.

GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem

DepthLevel This property is required. int
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
GrantedRole This property is required. string
A filter to return only items that match the specified role.
Grantee This property is required. string
A filter to return only items that match the specified grantee.
Key This property is required. string
The unique key of a role grant.
DepthLevel This property is required. int
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
GrantedRole This property is required. string
A filter to return only items that match the specified role.
Grantee This property is required. string
A filter to return only items that match the specified grantee.
Key This property is required. string
The unique key of a role grant.
depthLevel This property is required. Integer
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
grantedRole This property is required. String
A filter to return only items that match the specified role.
grantee This property is required. String
A filter to return only items that match the specified grantee.
key This property is required. String
The unique key of a role grant.
depthLevel This property is required. number
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
grantedRole This property is required. string
A filter to return only items that match the specified role.
grantee This property is required. string
A filter to return only items that match the specified grantee.
key This property is required. string
The unique key of a role grant.
depth_level This property is required. int
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
granted_role This property is required. str
A filter to return only items that match the specified role.
grantee This property is required. str
A filter to return only items that match the specified grantee.
key This property is required. str
The unique key of a role grant.
depthLevel This property is required. Number
The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.
grantedRole This property is required. String
A filter to return only items that match the specified role.
grantee This property is required. String
A filter to return only items that match the specified grantee.
key This property is required. String
The unique key of a role grant.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.