Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi
snowflake.getGrants
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
var grants = Snowflake.GetGrants.Invoke(new()
{
GrantsOn = new Snowflake.Inputs.GetGrantsGrantsOnInputArgs
{
Account = true,
},
});
var grants2 = Snowflake.GetGrants.Invoke(new()
{
GrantsOn = new Snowflake.Inputs.GetGrantsGrantsOnInputArgs
{
ObjectName = "\"tst\"",
ObjectType = "DATABASE",
},
});
var grants3 = Snowflake.GetGrants.Invoke(new()
{
GrantsTo = new Snowflake.Inputs.GetGrantsGrantsToInputArgs
{
Role = "ACCOUNTADMIN",
},
});
var grants4 = Snowflake.GetGrants.Invoke(new()
{
GrantsOf = new Snowflake.Inputs.GetGrantsGrantsOfInputArgs
{
Role = "ACCOUNTADMIN",
},
});
var grants5 = Snowflake.GetGrants.Invoke(new()
{
FutureGrantsIn = new Snowflake.Inputs.GetGrantsFutureGrantsInInputArgs
{
Database = "\"tst\"",
},
});
var grants6 = Snowflake.GetGrants.Invoke(new()
{
FutureGrantsIn = new Snowflake.Inputs.GetGrantsFutureGrantsInInputArgs
{
Schema = new Snowflake.Inputs.GetGrantsFutureGrantsInSchemaInputArgs
{
DatabaseName = "\"mydatabase\"",
SchemaName = "\"myschema\"",
},
},
});
var grants7 = Snowflake.GetGrants.Invoke(new()
{
FutureGrantsTo = new Snowflake.Inputs.GetGrantsFutureGrantsToInputArgs
{
Role = "ACCOUNTADMIN",
},
});
});
package main
import (
"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
GrantsOn: snowflake.GetGrantsGrantsOn{
Account: pulumi.BoolRef(true),
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
GrantsOn: snowflake.GetGrantsGrantsOn{
ObjectName: pulumi.StringRef("\"tst\""),
ObjectType: pulumi.StringRef("DATABASE"),
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
GrantsTo: snowflake.GetGrantsGrantsTo{
Role: pulumi.StringRef("ACCOUNTADMIN"),
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
GrantsOf: snowflake.GetGrantsGrantsOf{
Role: pulumi.StringRef("ACCOUNTADMIN"),
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
FutureGrantsIn: snowflake.GetGrantsFutureGrantsIn{
Database: pulumi.StringRef("\"tst\""),
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
FutureGrantsIn: snowflake.GetGrantsFutureGrantsIn{
Schema: snowflake.GetGrantsFutureGrantsInSchema{
DatabaseName: pulumi.StringRef("\"mydatabase\""),
SchemaName: "\"myschema\"",
},
},
}, nil)
if err != nil {
return err
}
_, err = snowflake.GetGrants(ctx, &snowflake.GetGrantsArgs{
FutureGrantsTo: snowflake.GetGrantsFutureGrantsTo{
Role: "ACCOUNTADMIN",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.SnowflakeFunctions;
import com.pulumi.snowflake.inputs.GetGrantsArgs;
import com.pulumi.snowflake.inputs.GetGrantsGrantsOnArgs;
import com.pulumi.snowflake.inputs.GetGrantsGrantsToArgs;
import com.pulumi.snowflake.inputs.GetGrantsGrantsOfArgs;
import com.pulumi.snowflake.inputs.GetGrantsFutureGrantsInArgs;
import com.pulumi.snowflake.inputs.GetGrantsFutureGrantsInSchemaArgs;
import com.pulumi.snowflake.inputs.GetGrantsFutureGrantsToArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var grants = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.grantsOn(GetGrantsGrantsOnArgs.builder()
.account(true)
.build())
.build());
final var grants2 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.grantsOn(GetGrantsGrantsOnArgs.builder()
.objectName("\"tst\"")
.objectType("DATABASE")
.build())
.build());
final var grants3 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.grantsTo(GetGrantsGrantsToArgs.builder()
.role("ACCOUNTADMIN")
.build())
.build());
final var grants4 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.grantsOf(GetGrantsGrantsOfArgs.builder()
.role("ACCOUNTADMIN")
.build())
.build());
final var grants5 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.futureGrantsIn(GetGrantsFutureGrantsInArgs.builder()
.database("\"tst\"")
.build())
.build());
final var grants6 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.futureGrantsIn(GetGrantsFutureGrantsInArgs.builder()
.schema(GetGrantsFutureGrantsInSchemaArgs.builder()
.databaseName("\"mydatabase\"")
.schemaName("\"myschema\"")
.build())
.build())
.build());
final var grants7 = SnowflakeFunctions.getGrants(GetGrantsArgs.builder()
.futureGrantsTo(GetGrantsFutureGrantsToArgs.builder()
.role("ACCOUNTADMIN")
.build())
.build());
}
}
import pulumi
import pulumi_snowflake as snowflake
grants = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
account=True,
))
grants2 = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
object_name="\"tst\"",
object_type="DATABASE",
))
grants3 = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
role="ACCOUNTADMIN",
))
grants4 = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
role="ACCOUNTADMIN",
))
grants5 = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
database="\"tst\"",
))
grants6 = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
schema=snowflake.GetGrantsFutureGrantsInSchemaArgs(
database_name="\"mydatabase\"",
schema_name="\"myschema\"",
),
))
grants7 = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
role="ACCOUNTADMIN",
))
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const grants = snowflake.getGrants({
grantsOn: {
account: true,
},
});
const grants2 = snowflake.getGrants({
grantsOn: {
objectName: "\"tst\"",
objectType: "DATABASE",
},
});
const grants3 = snowflake.getGrants({
grantsTo: {
role: "ACCOUNTADMIN",
},
});
const grants4 = snowflake.getGrants({
grantsOf: {
role: "ACCOUNTADMIN",
},
});
const grants5 = snowflake.getGrants({
futureGrantsIn: {
database: "\"tst\"",
},
});
const grants6 = snowflake.getGrants({
futureGrantsIn: {
schema: {
databaseName: "\"mydatabase\"",
schemaName: "\"myschema\"",
},
},
});
const grants7 = snowflake.getGrants({
futureGrantsTo: {
role: "ACCOUNTADMIN",
},
});
variables:
grants:
fn::invoke:
Function: snowflake:getGrants
Arguments:
grantsOn:
account: true
grants2:
fn::invoke:
Function: snowflake:getGrants
Arguments:
grantsOn:
objectName: '"tst"'
objectType: DATABASE
grants3:
fn::invoke:
Function: snowflake:getGrants
Arguments:
grantsTo:
role: ACCOUNTADMIN
grants4:
fn::invoke:
Function: snowflake:getGrants
Arguments:
grantsOf:
role: ACCOUNTADMIN
grants5:
fn::invoke:
Function: snowflake:getGrants
Arguments:
futureGrantsIn:
database: '"tst"'
grants6:
fn::invoke:
Function: snowflake:getGrants
Arguments:
futureGrantsIn:
schema:
databaseName: '"mydatabase"'
schemaName: '"myschema"'
grants7:
fn::invoke:
Function: snowflake:getGrants
Arguments:
futureGrantsTo:
role: ACCOUNTADMIN
Using getGrants
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 getGrants(args: GetGrantsArgs, opts?: InvokeOptions): Promise<GetGrantsResult>
function getGrantsOutput(args: GetGrantsOutputArgs, opts?: InvokeOptions): Output<GetGrantsResult>
def get_grants(future_grants_in: Optional[GetGrantsFutureGrantsIn] = None,
future_grants_to: Optional[GetGrantsFutureGrantsTo] = None,
grants_of: Optional[GetGrantsGrantsOf] = None,
grants_on: Optional[GetGrantsGrantsOn] = None,
grants_to: Optional[GetGrantsGrantsTo] = None,
opts: Optional[InvokeOptions] = None) -> GetGrantsResult
def get_grants_output(future_grants_in: Optional[pulumi.Input[GetGrantsFutureGrantsInArgs]] = None,
future_grants_to: Optional[pulumi.Input[GetGrantsFutureGrantsToArgs]] = None,
grants_of: Optional[pulumi.Input[GetGrantsGrantsOfArgs]] = None,
grants_on: Optional[pulumi.Input[GetGrantsGrantsOnArgs]] = None,
grants_to: Optional[pulumi.Input[GetGrantsGrantsToArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGrantsResult]
func GetGrants(ctx *Context, args *GetGrantsArgs, opts ...InvokeOption) (*GetGrantsResult, error)
func GetGrantsOutput(ctx *Context, args *GetGrantsOutputArgs, opts ...InvokeOption) GetGrantsResultOutput
> Note: This function is named GetGrants
in the Go SDK.
public static class GetGrants
{
public static Task<GetGrantsResult> InvokeAsync(GetGrantsArgs args, InvokeOptions? opts = null)
public static Output<GetGrantsResult> Invoke(GetGrantsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGrantsResult> getGrants(GetGrantsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getGrants:getGrants
arguments:
# arguments dictionary
The following arguments are supported:
- Future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- Future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- Grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- Grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- Grants
To GetGrants Grants To - Lists all privileges granted to the object
- Future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- Future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- Grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- Grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- Grants
To GetGrants Grants To - Lists all privileges granted to the object
- future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants
To GetGrants Grants To - Lists all privileges granted to the object
- future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants
To GetGrants Grants To - Lists all privileges granted to the object
- future_
grants_ Getin Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future_
grants_ Getto Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants_
of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants_
on GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants_
to GetGrants Grants To - Lists all privileges granted to the object
- future
Grants Property MapIn - Lists all privileges on new (i.e. future) objects
- future
Grants Property MapTo - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of Property Map - Lists all objects to which the given object has been granted
- grants
On Property Map - Lists all privileges that have been granted on an object or account
- grants
To Property Map - Lists all privileges granted to the object
getGrants Result
The following output properties are available:
- Grants
List<Get
Grants Grant> - The list of grants
- Id string
- The provider-assigned unique ID for this managed resource.
- Future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- Future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- Grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- Grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- Grants
To GetGrants Grants To - Lists all privileges granted to the object
- Grants
[]Get
Grants Grant - The list of grants
- Id string
- The provider-assigned unique ID for this managed resource.
- Future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- Future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- Grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- Grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- Grants
To GetGrants Grants To - Lists all privileges granted to the object
- grants
List<Get
Grants Grant> - The list of grants
- id String
- The provider-assigned unique ID for this managed resource.
- future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants
To GetGrants Grants To - Lists all privileges granted to the object
- grants
Get
Grants Grant[] - The list of grants
- id string
- The provider-assigned unique ID for this managed resource.
- future
Grants GetIn Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future
Grants GetTo Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants
On GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants
To GetGrants Grants To - Lists all privileges granted to the object
- grants
Sequence[Get
Grants Grant] - The list of grants
- id str
- The provider-assigned unique ID for this managed resource.
- future_
grants_ Getin Grants Future Grants In - Lists all privileges on new (i.e. future) objects
- future_
grants_ Getto Grants Future Grants To - Lists all privileges granted to the object on new (i.e. future) objects
- grants_
of GetGrants Grants Of - Lists all objects to which the given object has been granted
- grants_
on GetGrants Grants On - Lists all privileges that have been granted on an object or account
- grants_
to GetGrants Grants To - Lists all privileges granted to the object
- grants List<Property Map>
- The list of grants
- id String
- The provider-assigned unique ID for this managed resource.
- future
Grants Property MapIn - Lists all privileges on new (i.e. future) objects
- future
Grants Property MapTo - Lists all privileges granted to the object on new (i.e. future) objects
- grants
Of Property Map - Lists all objects to which the given object has been granted
- grants
On Property Map - Lists all privileges that have been granted on an object or account
- grants
To Property Map - Lists all privileges granted to the object
Supporting Types
GetGrantsFutureGrantsIn
- Database string
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- Schema
Get
Grants Future Grants In Schema - Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
- Database string
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- Schema
Get
Grants Future Grants In Schema - Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
- database String
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- schema
Get
Grants Future Grants In Schema - Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
- database string
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- schema
Get
Grants Future Grants In Schema - Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
- database str
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- schema
Get
Grants Future Grants In Schema - Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
- database String
- Lists all privileges on new (i.e. future) objects of a specified type in the database granted to a role.
- schema Property Map
- Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
GetGrantsFutureGrantsInSchema
- Schema
Name string - The name of the schema to list all privileges of new (ie. future) objects granted to
- Database
Name string - The database in which the scehma resides. Optional when querying a schema in the current database.
- Schema
Name string - The name of the schema to list all privileges of new (ie. future) objects granted to
- Database
Name string - The database in which the scehma resides. Optional when querying a schema in the current database.
- schema
Name String - The name of the schema to list all privileges of new (ie. future) objects granted to
- database
Name String - The database in which the scehma resides. Optional when querying a schema in the current database.
- schema
Name string - The name of the schema to list all privileges of new (ie. future) objects granted to
- database
Name string - The database in which the scehma resides. Optional when querying a schema in the current database.
- schema_
name str - The name of the schema to list all privileges of new (ie. future) objects granted to
- database_
name str - The database in which the scehma resides. Optional when querying a schema in the current database.
- schema
Name String - The name of the schema to list all privileges of new (ie. future) objects granted to
- database
Name String - The database in which the scehma resides. Optional when querying a schema in the current database.
GetGrantsFutureGrantsTo
- Role string
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
- Role string
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
- role String
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
- role string
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
- role str
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
- role String
- Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
GetGrantsGrant
- Created
On string - The date and time the grant was created
- Grant
Option bool - Whether the grantee can grant the privilege to others
- Granted
By string - The role that granted the privilege
- Granted
On string - The object on which the privilege was granted
- Granted
To string - The role to which the privilege was granted
- Grantee
Name string - The name of the role to which the privilege was granted
- Name string
- The name of the object on which the privilege was granted
- Privilege string
- The privilege granted
- Created
On string - The date and time the grant was created
- Grant
Option bool - Whether the grantee can grant the privilege to others
- Granted
By string - The role that granted the privilege
- Granted
On string - The object on which the privilege was granted
- Granted
To string - The role to which the privilege was granted
- Grantee
Name string - The name of the role to which the privilege was granted
- Name string
- The name of the object on which the privilege was granted
- Privilege string
- The privilege granted
- created
On String - The date and time the grant was created
- grant
Option Boolean - Whether the grantee can grant the privilege to others
- granted
By String - The role that granted the privilege
- granted
On String - The object on which the privilege was granted
- granted
To String - The role to which the privilege was granted
- grantee
Name String - The name of the role to which the privilege was granted
- name String
- The name of the object on which the privilege was granted
- privilege String
- The privilege granted
- created
On string - The date and time the grant was created
- grant
Option boolean - Whether the grantee can grant the privilege to others
- granted
By string - The role that granted the privilege
- granted
On string - The object on which the privilege was granted
- granted
To string - The role to which the privilege was granted
- grantee
Name string - The name of the role to which the privilege was granted
- name string
- The name of the object on which the privilege was granted
- privilege string
- The privilege granted
- created_
on str - The date and time the grant was created
- grant_
option bool - Whether the grantee can grant the privilege to others
- granted_
by str - The role that granted the privilege
- granted_
on str - The object on which the privilege was granted
- granted_
to str - The role to which the privilege was granted
- grantee_
name str - The name of the role to which the privilege was granted
- name str
- The name of the object on which the privilege was granted
- privilege str
- The privilege granted
- created
On String - The date and time the grant was created
- grant
Option Boolean - Whether the grantee can grant the privilege to others
- granted
By String - The role that granted the privilege
- granted
On String - The object on which the privilege was granted
- granted
To String - The role to which the privilege was granted
- grantee
Name String - The name of the role to which the privilege was granted
- name String
- The name of the object on which the privilege was granted
- privilege String
- The privilege granted
GetGrantsGrantsOf
- Role string
- Lists all users and roles to which the role has been granted
- string
- Lists all the accounts for the share and indicates the accounts that are using the share.
- Role string
- Lists all users and roles to which the role has been granted
- string
- Lists all the accounts for the share and indicates the accounts that are using the share.
- role String
- Lists all users and roles to which the role has been granted
- String
- Lists all the accounts for the share and indicates the accounts that are using the share.
- role string
- Lists all users and roles to which the role has been granted
- string
- Lists all the accounts for the share and indicates the accounts that are using the share.
- role str
- Lists all users and roles to which the role has been granted
- str
- Lists all the accounts for the share and indicates the accounts that are using the share.
- role String
- Lists all users and roles to which the role has been granted
- String
- Lists all the accounts for the share and indicates the accounts that are using the share.
GetGrantsGrantsOn
- Account bool
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- Object
Name string - Name of object to list privileges on
- Object
Type string - Type of object to list privileges on.
- Account bool
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- Object
Name string - Name of object to list privileges on
- Object
Type string - Type of object to list privileges on.
- account Boolean
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- object
Name String - Name of object to list privileges on
- object
Type String - Type of object to list privileges on.
- account boolean
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- object
Name string - Name of object to list privileges on
- object
Type string - Type of object to list privileges on.
- account bool
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- object_
name str - Name of object to list privileges on
- object_
type str - Type of object to list privileges on.
- account Boolean
- Object hierarchy to list privileges on. The only valid value is: ACCOUNT. Setting this attribute lists all the account-level (i.e. global) privileges that have been granted to roles.
- object
Name String - Name of object to list privileges on
- object
Type String - Type of object to list privileges on.
GetGrantsGrantsTo
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.