Skip to main content

grant_options

Creates, updates, deletes, gets or lists a grant_options resource.

Overview

Namegrant_options
TypeResource
Idsnowflake.grants.grant_options

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
revokedeletegrantee_type, grantee_name, securable_type, securable_name, privilege, endpointdeleteModeEndpoint to indicate that the grant option for the privilege listed in the path should be revoked.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringOrganization and account identifier (orgname-accountname) (default: orgname-accountname)
grantee_namestringString that specifies the name of the privilege grantee.
grantee_typestringString that specifies the type of resource that is the privilege grantee.
privilegestringString that specifies a privilege to be revoked
securable_namestringString that specifies the name of resource that is being secured by a privilege.
securable_typestringString that specifies the type of resource that is being secured by a privilege.
deleteModestringIf "cascade", recursively revoke the grant from sub-grantees to which this privilege was re-granted. Acceptable values are "restrict" or "cascade".

DELETE examples

Endpoint to indicate that the grant option for the privilege listed in the path should be revoked.

DELETE FROM snowflake.grants.grant_options
WHERE grantee_type = '{{ grantee_type }}' --required
AND grantee_name = '{{ grantee_name }}' --required
AND securable_type = '{{ securable_type }}' --required
AND securable_name = '{{ securable_name }}' --required
AND privilege = '{{ privilege }}' --required
AND endpoint = '{{ endpoint }}' --required
AND deleteMode = '{{ deleteMode }}'
;