Snowflake v0.27.1, Jun 5 23
Snowflake v0.27.1, Jun 5 23
snowflake.getDatabaseRoles
Explore with Pulumi AI
Using getDatabaseRoles
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 getDatabaseRoles(args: GetDatabaseRolesArgs, opts?: InvokeOptions): Promise<GetDatabaseRolesResult>
function getDatabaseRolesOutput(args: GetDatabaseRolesOutputArgs, opts?: InvokeOptions): Output<GetDatabaseRolesResult>
def get_database_roles(database: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseRolesResult
def get_database_roles_output(database: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseRolesResult]
func GetDatabaseRoles(ctx *Context, args *GetDatabaseRolesArgs, opts ...InvokeOption) (*GetDatabaseRolesResult, error)
func GetDatabaseRolesOutput(ctx *Context, args *GetDatabaseRolesOutputArgs, opts ...InvokeOption) GetDatabaseRolesResultOutput
> Note: This function is named GetDatabaseRoles
in the Go SDK.
public static class GetDatabaseRoles
{
public static Task<GetDatabaseRolesResult> InvokeAsync(GetDatabaseRolesArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseRolesResult> Invoke(GetDatabaseRolesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseRolesResult> getDatabaseRoles(GetDatabaseRolesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getDatabaseRoles:getDatabaseRoles
arguments:
# arguments dictionary
The following arguments are supported:
- Database string
The database from which to return the database roles from.
- Database string
The database from which to return the database roles from.
- database String
The database from which to return the database roles from.
- database string
The database from which to return the database roles from.
- database str
The database from which to return the database roles from.
- database String
The database from which to return the database roles from.
getDatabaseRoles Result
The following output properties are available:
- Database
Roles List<GetDatabase Roles Database Role> Lists all the database roles in a specified database.
- Id string
The provider-assigned unique ID for this managed resource.
- Database string
The database from which to return the database roles from.
- Database
Roles []GetDatabase Roles Database Role Lists all the database roles in a specified database.
- Id string
The provider-assigned unique ID for this managed resource.
- Database string
The database from which to return the database roles from.
- database
Roles List<GetDatabase Roles Database Role> Lists all the database roles in a specified database.
- id String
The provider-assigned unique ID for this managed resource.
- database String
The database from which to return the database roles from.
- database
Roles GetDatabase Roles Database Role[] Lists all the database roles in a specified database.
- id string
The provider-assigned unique ID for this managed resource.
- database string
The database from which to return the database roles from.
- database_
roles Sequence[GetDatabase Roles Database Role] Lists all the database roles in a specified database.
- id str
The provider-assigned unique ID for this managed resource.
- database str
The database from which to return the database roles from.
- database
Roles List<Property Map> Lists all the database roles in a specified database.
- id String
The provider-assigned unique ID for this managed resource.
- database String
The database from which to return the database roles from.
Supporting Types
GetDatabaseRolesDatabaseRole
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
snowflake
Terraform Provider.