snowflake.getRoles
Explore with Pulumi AI
!> V1 release candidate This datasource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for SHOW ROLES query (like
and in_class
are all supported). The results of SHOW are encapsulated in one output collection.
Using getRoles
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 getRoles(args: GetRolesArgs, opts?: InvokeOptions): Promise<GetRolesResult>
function getRolesOutput(args: GetRolesOutputArgs, opts?: InvokeOptions): Output<GetRolesResult>
def get_roles(in_class: Optional[str] = None,
like: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRolesResult
def get_roles_output(in_class: Optional[pulumi.Input[str]] = None,
like: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRolesResult]
func GetRoles(ctx *Context, args *GetRolesArgs, opts ...InvokeOption) (*GetRolesResult, error)
func GetRolesOutput(ctx *Context, args *GetRolesOutputArgs, opts ...InvokeOption) GetRolesResultOutput
> Note: This function is named GetRoles
in the Go SDK.
public static class GetRoles
{
public static Task<GetRolesResult> InvokeAsync(GetRolesArgs args, InvokeOptions? opts = null)
public static Output<GetRolesResult> Invoke(GetRolesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRolesResult> getRoles(GetRolesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getRoles:getRoles
arguments:
# arguments dictionary
The following arguments are supported:
getRoles Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
List<Get
Roles Role> - Holds the aggregated output of all role details queries.
- In
Class string - Filters the SHOW GRANTS output by class name.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
[]Get
Roles Role - Holds the aggregated output of all role details queries.
- In
Class string - Filters the SHOW GRANTS output by class name.
- Like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
- id String
- The provider-assigned unique ID for this managed resource.
- roles
List<Get
Roles Role> - Holds the aggregated output of all role details queries.
- in
Class String - Filters the SHOW GRANTS output by class name.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
- id string
- The provider-assigned unique ID for this managed resource.
- roles
Get
Roles Role[] - Holds the aggregated output of all role details queries.
- in
Class string - Filters the SHOW GRANTS output by class name.
- like string
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
- id str
- The provider-assigned unique ID for this managed resource.
- roles
Sequence[Get
Roles Role] - Holds the aggregated output of all role details queries.
- in_
class str - Filters the SHOW GRANTS output by class name.
- like str
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
- id String
- The provider-assigned unique ID for this managed resource.
- roles List<Property Map>
- Holds the aggregated output of all role details queries.
- in
Class String - Filters the SHOW GRANTS output by class name.
- like String
- Filters the output with case-insensitive pattern, with support for SQL wildcard characters (
%
and_
).
Supporting Types
GetRolesRole
- Show
Outputs List<GetRoles Role Show Output> - Holds the output of SHOW ROLES.
- Show
Outputs []GetRoles Role Show Output - Holds the output of SHOW ROLES.
- show
Outputs List<GetRoles Role Show Output> - Holds the output of SHOW ROLES.
- show
Outputs GetRoles Role Show Output[] - Holds the output of SHOW ROLES.
- show_
outputs Sequence[GetRoles Role Show Output] - Holds the output of SHOW ROLES.
- show
Outputs List<Property Map> - Holds the output of SHOW ROLES.
GetRolesRoleShowOutput
- Assigned
To intUsers - Comment string
- Created
On string - Granted
Roles int - Granted
To intRoles - Is
Current bool - Is
Default bool - Is
Inherited bool - Name string
- Owner string
- Assigned
To intUsers - Comment string
- Created
On string - Granted
Roles int - Granted
To intRoles - Is
Current bool - Is
Default bool - Is
Inherited bool - Name string
- Owner string
- assigned
To IntegerUsers - comment String
- created
On String - granted
Roles Integer - granted
To IntegerRoles - is
Current Boolean - is
Default Boolean - is
Inherited Boolean - name String
- owner String
- assigned
To numberUsers - comment string
- created
On string - granted
Roles number - granted
To numberRoles - is
Current boolean - is
Default boolean - is
Inherited boolean - name string
- owner string
- assigned_
to_ intusers - comment str
- created_
on str - granted_
roles int - granted_
to_ introles - is_
current bool - is_
default bool - is_
inherited bool - name str
- owner str
- assigned
To NumberUsers - comment String
- created
On String - granted
Roles Number - granted
To NumberRoles - is
Current Boolean - is
Default Boolean - is
Inherited Boolean - name String
- owner String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.