Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi
snowflake.getAccountRoles
Explore with Pulumi AI
Data source used to get details of filtered account 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 getAccountRoles
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 getAccountRoles(args: GetAccountRolesArgs, opts?: InvokeOptions): Promise<GetAccountRolesResult>
function getAccountRolesOutput(args: GetAccountRolesOutputArgs, opts?: InvokeOptions): Output<GetAccountRolesResult>
def get_account_roles(in_class: Optional[str] = None,
like: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountRolesResult
def get_account_roles_output(in_class: Optional[pulumi.Input[str]] = None,
like: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountRolesResult]
func GetAccountRoles(ctx *Context, args *GetAccountRolesArgs, opts ...InvokeOption) (*GetAccountRolesResult, error)
func GetAccountRolesOutput(ctx *Context, args *GetAccountRolesOutputArgs, opts ...InvokeOption) GetAccountRolesResultOutput
> Note: This function is named GetAccountRoles
in the Go SDK.
public static class GetAccountRoles
{
public static Task<GetAccountRolesResult> InvokeAsync(GetAccountRolesArgs args, InvokeOptions? opts = null)
public static Output<GetAccountRolesResult> Invoke(GetAccountRolesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountRolesResult> getAccountRoles(GetAccountRolesArgs args, InvokeOptions options)
public static Output<GetAccountRolesResult> getAccountRoles(GetAccountRolesArgs args, InvokeOptions options)
fn::invoke:
function: snowflake:index/getAccountRoles:getAccountRoles
arguments:
# arguments dictionary
The following arguments are supported:
getAccountRoles Result
The following output properties are available:
- Account
Roles List<GetAccount Roles Account Role> - Holds the aggregated output of all account role details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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_
).
- Account
Roles []GetAccount Roles Account Role - Holds the aggregated output of all account role details queries.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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_
).
- account
Roles List<GetAccount Roles Account Role> - Holds the aggregated output of all account role details queries.
- id String
- The provider-assigned unique ID for this managed resource.
- 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_
).
- account
Roles GetAccount Roles Account Role[] - Holds the aggregated output of all account role details queries.
- id string
- The provider-assigned unique ID for this managed resource.
- 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_
).
- account_
roles Sequence[GetAccount Roles Account Role] - Holds the aggregated output of all account role details queries.
- id str
- The provider-assigned unique ID for this managed resource.
- 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_
).
- account
Roles List<Property Map> - Holds the aggregated output of all account role details queries.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
GetAccountRolesAccountRole
- Show
Outputs This property is required. List<GetAccount Roles Account Role Show Output> - Holds the output of SHOW ROLES.
- Show
Outputs This property is required. []GetAccount Roles Account Role Show Output - Holds the output of SHOW ROLES.
- show
Outputs This property is required. List<GetAccount Roles Account Role Show Output> - Holds the output of SHOW ROLES.
- show
Outputs This property is required. GetAccount Roles Account Role Show Output[] - Holds the output of SHOW ROLES.
- show_
outputs This property is required. Sequence[GetAccount Roles Account Role Show Output] - Holds the output of SHOW ROLES.
- show
Outputs This property is required. List<Property Map> - Holds the output of SHOW ROLES.
GetAccountRolesAccountRoleShowOutput
- Assigned
To Users This property is required. int - Comment
This property is required. string - Created
On This property is required. string - Granted
Roles This property is required. int - Granted
To Roles This property is required. int - Is
Current This property is required. bool - Is
Default This property is required. bool - Is
Inherited This property is required. bool - Name
This property is required. string - Owner
This property is required. string
- Assigned
To Users This property is required. int - Comment
This property is required. string - Created
On This property is required. string - Granted
Roles This property is required. int - Granted
To Roles This property is required. int - Is
Current This property is required. bool - Is
Default This property is required. bool - Is
Inherited This property is required. bool - Name
This property is required. string - Owner
This property is required. string
- assigned
To Users This property is required. Integer - comment
This property is required. String - created
On This property is required. String - granted
Roles This property is required. Integer - granted
To Roles This property is required. Integer - is
Current This property is required. Boolean - is
Default This property is required. Boolean - is
Inherited This property is required. Boolean - name
This property is required. String - owner
This property is required. String
- assigned
To Users This property is required. number - comment
This property is required. string - created
On This property is required. string - granted
Roles This property is required. number - granted
To Roles This property is required. number - is
Current This property is required. boolean - is
Default This property is required. boolean - is
Inherited This property is required. boolean - name
This property is required. string - owner
This property is required. string
- assigned_
to_ users This property is required. int - comment
This property is required. str - created_
on This property is required. str - granted_
roles This property is required. int - granted_
to_ roles This property is required. int - is_
current This property is required. bool - is_
default This property is required. bool - is_
inherited This property is required. bool - name
This property is required. str - owner
This property is required. str
- assigned
To Users This property is required. Number - comment
This property is required. String - created
On This property is required. String - granted
Roles This property is required. Number - granted
To Roles This property is required. Number - is
Current This property is required. Boolean - is
Default This property is required. Boolean - is
Inherited This property is required. Boolean - name
This property is required. String - owner
This property is required. String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.