Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.DataSafe.getSecurityPolicyReportRoleGrantPaths
Start a Neo task
Explain and create an oci.DataSafe.getSecurityPolicyReportRoleGrantPaths resource
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/v3/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:
- Granted
Role 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.
- Security
Policy stringReport Id - The OCID of the security policy report resource.
- Filters
List<Get
Security Policy Report Role Grant Paths Filter>
- Granted
Role 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.
- Security
Policy stringReport Id - The OCID of the security policy report resource.
- Filters
[]Get
Security Policy Report Role Grant Paths Filter
- granted
Role 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.
- security
Policy StringReport Id - The OCID of the security policy report resource.
- filters
List<Get
Security Policy Report Role Grant Paths Filter>
- granted
Role 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.
- security
Policy stringReport Id - The OCID of the security policy report resource.
- filters
Get
Security 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[Get
Security Policy Report Role Grant Paths Filter]
- granted
Role 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.
- security
Policy StringReport Id - The OCID of the security policy report resource.
- filters List<Property Map>
getSecurityPolicyReportRoleGrantPaths Result
The following output properties are available:
- Granted
Role 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.
- Role
Grant List<GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection> - The list of role_grant_path_collection.
- Security
Policy stringReport Id - Filters
List<Get
Security Policy Report Role Grant Paths Filter>
- Granted
Role 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.
- Role
Grant []GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection - The list of role_grant_path_collection.
- Security
Policy stringReport Id - Filters
[]Get
Security Policy Report Role Grant Paths Filter
- granted
Role 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.
- role
Grant List<GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection> - The list of role_grant_path_collection.
- security
Policy StringReport Id - filters
List<Get
Security Policy Report Role Grant Paths Filter>
- granted
Role 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.
- role
Grant GetPath Collections Security Policy Report Role Grant Paths Role Grant Path Collection[] - The list of role_grant_path_collection.
- security
Policy stringReport Id - filters
Get
Security 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[Get
Security Policy Report Role Grant Paths Filter]
- granted
Role 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.
- role
Grant List<Property Map>Path Collections - The list of role_grant_path_collection.
- security
Policy StringReport Id - filters List<Property Map>
Supporting Types
GetSecurityPolicyReportRoleGrantPathsFilter
GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection
- Items
List<Get
Security Policy Report Role Grant Paths Role Grant Path Collection Item> - An array of grant path summary objects.
- Items
[]Get
Security Policy Report Role Grant Paths Role Grant Path Collection Item - An array of grant path summary objects.
- items
List<Get
Security Policy Report Role Grant Paths Role Grant Path Collection Item> - An array of grant path summary objects.
- items
Get
Security Policy Report Role Grant Paths Role Grant Path Collection Item[] - An array of grant path summary objects.
- items
Sequence[Get
Security 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
- 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 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 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 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.
- granted
Role 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 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.
- granted
Role 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.
- depth
Level 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.
- granted
Role 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.
