1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getSecurityPolicyReportRoleGrantPaths
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataSafe.getSecurityPolicyReportRoleGrantPaths

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getSecurityPolicyReportRoleGrantPaths:getSecurityPolicyReportRoleGrantPaths
      arguments:
        # arguments dictionary

    The 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.
    SecurityPolicyReportId string
    The OCID of the security policy report resource.
    Filters List<GetSecurityPolicyReportRoleGrantPathsFilter>
    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.
    SecurityPolicyReportId string
    The OCID of the security policy report resource.
    Filters []GetSecurityPolicyReportRoleGrantPathsFilter
    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.
    securityPolicyReportId String
    The OCID of the security policy report resource.
    filters List<GetSecurityPolicyReportRoleGrantPathsFilter>
    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.
    securityPolicyReportId string
    The OCID of the security policy report resource.
    filters GetSecurityPolicyReportRoleGrantPathsFilter[]
    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_report_id str
    The OCID of the security policy report resource.
    filters Sequence[datasafe.GetSecurityPolicyReportRoleGrantPathsFilter]
    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.
    securityPolicyReportId String
    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.
    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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSecurityPolicyReportRoleGrantPathsRoleGrantPathCollection

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi