Snowflake v1.1.0 published on Monday, Jan 13, 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)
// Output-based functions aren't available in Java yet
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 List<GetAccount Roles Account Role Show Output> - Holds the output of SHOW ROLES.
- Show
Outputs []GetAccount Roles Account Role Show Output - Holds the output of SHOW ROLES.
- show
Outputs List<GetAccount Roles Account Role Show Output> - Holds the output of SHOW ROLES.
- show
Outputs GetAccount Roles Account Role Show Output[] - Holds the output of SHOW ROLES.
- show_
outputs Sequence[GetAccount Roles Account Role Show Output] - Holds the output of SHOW ROLES.
- show
Outputs List<Property Map> - Holds the output of SHOW ROLES.
GetAccountRolesAccountRoleShowOutput
- 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.