Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testSecurityPolicyReportRoleGrantPaths:
    fn::invoke:
      function: oci:DataSafe:getSecurityPolicyReportRoleGrantPaths
      arguments:
        grantedRole: ${securityPolicyReportRoleGrantPathGrantedRole}
        grantee: ${securityPolicyReportRoleGrantPathGrantee}
        securityPolicyReportId: ${testSecurityPolicyReport.id}
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>def get_security_policy_report_role_grant_paths(filters: Optional[Sequence[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[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]func GetSecurityPolicyReportRoleGrantPaths(ctx *Context, args *GetSecurityPolicyReportRoleGrantPathsArgs, opts ...InvokeOption) (*GetSecurityPolicyReportRoleGrantPathsResult, error)
func GetSecurityPolicyReportRoleGrantPathsOutput(ctx *Context, args *GetSecurityPolicyReportRoleGrantPathsOutputArgs, opts ...InvokeOption) GetSecurityPolicyReportRoleGrantPathsResultOutput> 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)
}public static CompletableFuture<GetSecurityPolicyReportRoleGrantPathsResult> getSecurityPolicyReportRoleGrantPaths(GetSecurityPolicyReportRoleGrantPathsArgs args, InvokeOptions options)
public static Output<GetSecurityPolicyReportRoleGrantPathsResult> getSecurityPolicyReportRoleGrantPaths(GetSecurityPolicyReportRoleGrantPathsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getSecurityPolicyReportRoleGrantPaths:getSecurityPolicyReportRoleGrantPaths
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GrantedRole string
- A filter to return only items that match the specified role.
- Grantee string
- A filter to return only items that match the specified grantee.
- SecurityPolicy stringReport Id 
- The OCID of the security policy report resource.
- Filters
List<GetSecurity Policy Report Role Grant Paths Filter> 
- GrantedRole string
- A filter to return only items that match the specified role.
- Grantee string
- A filter to return only items that match the specified grantee.
- SecurityPolicy stringReport Id 
- The OCID of the security policy report resource.
- Filters
[]GetSecurity Policy Report Role Grant Paths Filter 
- grantedRole String
- A filter to return only items that match the specified role.
- grantee String
- A filter to return only items that match the specified grantee.
- securityPolicy StringReport Id 
- The OCID of the security policy report resource.
- filters
List<GetSecurity Policy Report Role Grant Paths Filter> 
- grantedRole string
- A filter to return only items that match the specified role.
- grantee string
- A filter to return only items that match the specified grantee.
- securityPolicy stringReport Id 
- The OCID of the security policy report resource.
- filters
GetSecurity Policy Report Role Grant Paths Filter[] 
- granted_role str
- A filter to return only items that match the specified role.
- grantee str
- A filter to return only items that match the specified grantee.
- security_policy_ strreport_ id 
- The OCID of the security policy report resource.
- filters
Sequence[GetSecurity Policy Report Role Grant Paths Filter] 
- grantedRole String
- A filter to return only items that match the specified role.
- grantee String
- A filter to return only items that match the specified grantee.
- securityPolicy StringReport Id 
- The OCID of the security policy report resource.
- filters 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.
- RoleGrant List<GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection> 
- The list of role_grant_path_collection.
- SecurityPolicy stringReport Id 
- Filters
List<GetSecurity Policy Report Role Grant Paths Filter> 
- 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.
- RoleGrant []GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection 
- The list of role_grant_path_collection.
- SecurityPolicy stringReport Id 
- Filters
[]GetSecurity Policy Report Role Grant Paths Filter 
- 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.
- roleGrant List<GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection> 
- The list of role_grant_path_collection.
- securityPolicy StringReport Id 
- filters
List<GetSecurity Policy Report Role Grant Paths Filter> 
- 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.
- roleGrant GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection[] 
- The list of role_grant_path_collection.
- securityPolicy stringReport Id 
- filters
GetSecurity Policy Report Role Grant Paths Filter[] 
- 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_ Sequence[Getpath_ collections Security Policy Report Role Grant Paths Role Grant Path Collection] 
- The list of role_grant_path_collection.
- security_policy_ strreport_ id 
- filters
Sequence[GetSecurity Policy Report Role Grant Paths Filter] 
- 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.
- roleGrant List<Property Map>Path Collections 
- The list of role_grant_path_collection.
- securityPolicy StringReport Id 
- filters List<Property Map>
Supporting Types
GetSecurityPolicyReportRoleGrantPathsFilter       
GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection          
- Items
List<GetSecurity Policy Report Role Grant Paths Role Grant Path Collection Item> 
- An array of grant path summary objects.
- Items
[]GetSecurity Policy Report Role Grant Paths Role Grant Path Collection Item 
- An array of grant path summary objects.
- items
List<GetSecurity Policy Report Role Grant Paths Role Grant Path Collection Item> 
- An array of grant path summary objects.
- items
GetSecurity Policy Report Role Grant Paths Role Grant Path Collection Item[] 
- An array of grant path summary objects.
- items
Sequence[GetSecurity Policy Report Role Grant Paths Role Grant Path Collection Item] 
- An array of grant path summary objects.
- items List<Property Map>
- An array of grant path summary objects.
GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollectionItem           
- DepthLevel 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 string
- A filter to return only items that match the specified role.
- Grantee string
- A filter to return only items that match the specified grantee.
- Key string
- The unique key of a role grant.
- DepthLevel 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 string
- A filter to return only items that match the specified role.
- Grantee string
- A filter to return only items that match the specified grantee.
- Key string
- The unique key of a role grant.
- depthLevel 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 String
- A filter to return only items that match the specified role.
- grantee String
- A filter to return only items that match the specified grantee.
- key String
- The unique key of a role grant.
- depthLevel 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 string
- A filter to return only items that match the specified role.
- grantee string
- A filter to return only items that match the specified grantee.
- key string
- The unique key of a role grant.
- depth_level 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 str
- A filter to return only items that match the specified role.
- grantee str
- A filter to return only items that match the specified grantee.
- key str
- The unique key of a role grant.
- depthLevel 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 String
- A filter to return only items that match the specified role.
- grantee String
- A filter to return only items that match the specified grantee.
- key 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 ociTerraform Provider.