snowflake.core.grant¶

Manages Snowflake Privileges.

Example

>>> root.grants.grant(Grant(
>>>        grantee=Grantees.role(name=role_name),
>>>        securable=Securables.current_account,
>>>        privileges=[Privileges.create_database]))
Copy

Classes

Grant(grantee, securable[, privileges, ...])

Represents Snowflake Grant Operation.

Grants(root)

The entry point of the Snowflake Core Python APIs to manage Snowflake Grants.

Grantee(name, grantee_type)

Class to represent type of resource that is the privilege grantee.

Grantees()

Util Class with static methods to create various Grantee class instances.

Privileges(value)

Enum for Snowflake privileges that can be granted to a role or user.

Securable(name, securable_type[, scope])

Class to represent an snowflake entity that is being secured by a Privileges.

Securables()

Util Class with static method to create various Securable class instances.