import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of List User Grants in Oracle Cloud Infrastructure Data Safe service. * * Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the * privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to * roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers * to get the userKey for a particular user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testListUserGrants = oci.datasafe.getListUserGrants({ * userAssessmentId: testUserAssessment.id, * userKey: listUserGrantUserKey, * depthLevel: Number(listUserGrantDepthLevel), * depthLevelGreaterThanOrEqualTo: Number(listUserGrantDepthLevelGreaterThanOrEqualTo), * depthLevelLessThan: Number(listUserGrantDepthLevelLessThan), * grantKey: listUserGrantGrantKey, * grantName: listUserGrantGrantName, * privilegeCategory: listUserGrantPrivilegeCategory, * privilegeType: listUserGrantPrivilegeType, * }); * ``` */ export declare function getListUserGrants(args: GetListUserGrantsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getListUserGrants. */ export interface GetListUserGrantsArgs { /** * A filter to return only items that match the specified user grant depth level. */ depthLevel?: number; /** * A filter to return only items that are at a level greater than or equal to the specified user grant depth level. */ depthLevelGreaterThanOrEqualTo?: number; /** * A filter to return only items that are at a level less than the specified user grant depth level. */ depthLevelLessThan?: number; filters?: inputs.DataSafe.GetListUserGrantsFilter[]; /** * A filter to return only items that match the specified user grant key. */ grantKey?: string; /** * A filter to return only items that match the specified user grant name. */ grantName?: string; /** * A filter to return only items that match the specified user privilege category. */ privilegeCategory?: string; /** * A filter to return only items that match the specified privilege grant type. */ privilegeType?: string; /** * The OCID of the user assessment. */ userAssessmentId: string; /** * The unique user key. This is a system-generated identifier. ListUsers gets the user key for a user. */ userKey: string; } /** * A collection of values returned by getListUserGrants. */ export interface GetListUserGrantsResult { /** * 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. */ readonly depthLevel?: number; readonly depthLevelGreaterThanOrEqualTo?: number; readonly depthLevelLessThan?: number; readonly filters?: outputs.DataSafe.GetListUserGrantsFilter[]; readonly grantKey?: string; /** * The name of a user grant. */ readonly grantName?: string; /** * The list of grants. */ readonly grants: outputs.DataSafe.GetListUserGrantsGrant[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The privilege category. */ readonly privilegeCategory?: string; /** * The type of a user grant. */ readonly privilegeType?: string; readonly userAssessmentId: string; readonly userKey: string; } /** * This data source provides the list of List User Grants in Oracle Cloud Infrastructure Data Safe service. * * Gets a list of grants for a particular user in the specified user assessment. A user grant contains details such as the * privilege name, type, category, and depth level. The depth level indicates how deep in the hierarchy of roles granted to * roles a privilege grant is. The userKey in this operation is a system-generated identifier. Perform the operation ListUsers * to get the userKey for a particular user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testListUserGrants = oci.datasafe.getListUserGrants({ * userAssessmentId: testUserAssessment.id, * userKey: listUserGrantUserKey, * depthLevel: Number(listUserGrantDepthLevel), * depthLevelGreaterThanOrEqualTo: Number(listUserGrantDepthLevelGreaterThanOrEqualTo), * depthLevelLessThan: Number(listUserGrantDepthLevelLessThan), * grantKey: listUserGrantGrantKey, * grantName: listUserGrantGrantName, * privilegeCategory: listUserGrantPrivilegeCategory, * privilegeType: listUserGrantPrivilegeType, * }); * ``` */ export declare function getListUserGrantsOutput(args: GetListUserGrantsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getListUserGrants. */ export interface GetListUserGrantsOutputArgs { /** * A filter to return only items that match the specified user grant depth level. */ depthLevel?: pulumi.Input; /** * A filter to return only items that are at a level greater than or equal to the specified user grant depth level. */ depthLevelGreaterThanOrEqualTo?: pulumi.Input; /** * A filter to return only items that are at a level less than the specified user grant depth level. */ depthLevelLessThan?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only items that match the specified user grant key. */ grantKey?: pulumi.Input; /** * A filter to return only items that match the specified user grant name. */ grantName?: pulumi.Input; /** * A filter to return only items that match the specified user privilege category. */ privilegeCategory?: pulumi.Input; /** * A filter to return only items that match the specified privilege grant type. */ privilegeType?: pulumi.Input; /** * The OCID of the user assessment. */ userAssessmentId: pulumi.Input; /** * The unique user key. This is a system-generated identifier. ListUsers gets the user key for a user. */ userKey: pulumi.Input; } //# sourceMappingURL=getListUserGrants.d.ts.map