1. Packages
  2. Snowflake
  3. API Docs
  4. getGrants
Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi

snowflake.getGrants

Explore with Pulumi AI

snowflake logo
Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi

    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:

    FutureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    FutureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    GrantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    GrantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    GrantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    FutureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    FutureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    GrantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    GrantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    GrantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    futureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    futureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    future_grants_in GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    future_grants_to GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grants_of GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grants_on GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grants_to GetGrantsGrantsTo
    Lists all privileges granted to the object
    futureGrantsIn Property Map
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo Property Map
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf Property Map
    Lists all objects to which the given object has been granted
    grantsOn Property Map
    Lists all privileges that have been granted on an object or account
    grantsTo Property Map
    Lists all privileges granted to the object

    getGrants Result

    The following output properties are available:

    Grants List<GetGrantsGrant>
    The list of grants
    Id string
    The provider-assigned unique ID for this managed resource.
    FutureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    FutureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    GrantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    GrantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    GrantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    Grants []GetGrantsGrant
    The list of grants
    Id string
    The provider-assigned unique ID for this managed resource.
    FutureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    FutureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    GrantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    GrantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    GrantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    grants List<GetGrantsGrant>
    The list of grants
    id String
    The provider-assigned unique ID for this managed resource.
    futureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    grants GetGrantsGrant[]
    The list of grants
    id string
    The provider-assigned unique ID for this managed resource.
    futureGrantsIn GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grantsOn GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grantsTo GetGrantsGrantsTo
    Lists all privileges granted to the object
    grants Sequence[GetGrantsGrant]
    The list of grants
    id str
    The provider-assigned unique ID for this managed resource.
    future_grants_in GetGrantsFutureGrantsIn
    Lists all privileges on new (i.e. future) objects
    future_grants_to GetGrantsFutureGrantsTo
    Lists all privileges granted to the object on new (i.e. future) objects
    grants_of GetGrantsGrantsOf
    Lists all objects to which the given object has been granted
    grants_on GetGrantsGrantsOn
    Lists all privileges that have been granted on an object or account
    grants_to GetGrantsGrantsTo
    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.
    futureGrantsIn Property Map
    Lists all privileges on new (i.e. future) objects
    futureGrantsTo Property Map
    Lists all privileges granted to the object on new (i.e. future) objects
    grantsOf Property Map
    Lists all objects to which the given object has been granted
    grantsOn Property Map
    Lists all privileges that have been granted on an object or account
    grantsTo 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 GetGrantsFutureGrantsInSchema
    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 GetGrantsFutureGrantsInSchema
    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 GetGrantsFutureGrantsInSchema
    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 GetGrantsFutureGrantsInSchema
    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 GetGrantsFutureGrantsInSchema
    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

    SchemaName string
    The name of the schema to list all privileges of new (ie. future) objects granted to
    DatabaseName string
    The database in which the scehma resides. Optional when querying a schema in the current database.
    SchemaName string
    The name of the schema to list all privileges of new (ie. future) objects granted to
    DatabaseName string
    The database in which the scehma resides. Optional when querying a schema in the current database.
    schemaName String
    The name of the schema to list all privileges of new (ie. future) objects granted to
    databaseName String
    The database in which the scehma resides. Optional when querying a schema in the current database.
    schemaName string
    The name of the schema to list all privileges of new (ie. future) objects granted to
    databaseName 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.
    schemaName String
    The name of the schema to list all privileges of new (ie. future) objects granted to
    databaseName 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

    CreatedOn string
    The date and time the grant was created
    GrantOption bool
    Whether the grantee can grant the privilege to others
    GrantedBy string
    The role that granted the privilege
    GrantedOn string
    The object on which the privilege was granted
    GrantedTo string
    The role to which the privilege was granted
    GranteeName 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
    CreatedOn string
    The date and time the grant was created
    GrantOption bool
    Whether the grantee can grant the privilege to others
    GrantedBy string
    The role that granted the privilege
    GrantedOn string
    The object on which the privilege was granted
    GrantedTo string
    The role to which the privilege was granted
    GranteeName 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
    createdOn String
    The date and time the grant was created
    grantOption Boolean
    Whether the grantee can grant the privilege to others
    grantedBy String
    The role that granted the privilege
    grantedOn String
    The object on which the privilege was granted
    grantedTo String
    The role to which the privilege was granted
    granteeName 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
    createdOn string
    The date and time the grant was created
    grantOption boolean
    Whether the grantee can grant the privilege to others
    grantedBy string
    The role that granted the privilege
    grantedOn string
    The object on which the privilege was granted
    grantedTo string
    The role to which the privilege was granted
    granteeName 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
    createdOn String
    The date and time the grant was created
    grantOption Boolean
    Whether the grantee can grant the privilege to others
    grantedBy String
    The role that granted the privilege
    grantedOn String
    The object on which the privilege was granted
    grantedTo String
    The role to which the privilege was granted
    granteeName 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
    Share 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
    Share 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
    share 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
    share 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
    share 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
    share 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.
    ObjectName string
    Name of object to list privileges on
    ObjectType 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.
    ObjectName string
    Name of object to list privileges on
    ObjectType 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.
    objectName String
    Name of object to list privileges on
    objectType 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.
    objectName string
    Name of object to list privileges on
    objectType 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.
    objectName String
    Name of object to list privileges on
    objectType String
    Type of object to list privileges on.

    GetGrantsGrantsTo

    Role string
    Lists all privileges and roles granted to the role
    Share string
    Lists all the privileges granted to the share
    User string
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
    Role string
    Lists all privileges and roles granted to the role
    Share string
    Lists all the privileges granted to the share
    User string
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
    role String
    Lists all privileges and roles granted to the role
    share String
    Lists all the privileges granted to the share
    user String
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
    role string
    Lists all privileges and roles granted to the role
    share string
    Lists all the privileges granted to the share
    user string
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
    role str
    Lists all privileges and roles granted to the role
    share str
    Lists all the privileges granted to the share
    user str
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
    role String
    Lists all privileges and roles granted to the role
    share String
    Lists all the privileges granted to the share
    user String
    Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi