DESCRIBE CODE BUNDLE

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Object: CODE BUNDLE

Describes the properties of a Code Bundle, including its versions and the source that backs it. DESCRIBE can be abbreviated to DESC.

Syntax

{ DESC | DESCRIBE } CODE BUNDLE <name>

Parameters

NameRequiredDescription
nameSpecifies the identifier of the Code Bundle to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.

Usage notes

Output

The output of the command includes the following columns, which describe the properties and metadata of the object: Column | Description name | Name of the Code Bundle. comment | Comment for the Code Bundle. default_version | The version that runs use when they call the Code Bundle by name, for example LAST. default_version_name | Name of the default version. default_version_alias | Alias of the default version. default_version_location_uri | Location of the default version’s files, in the form snow://code bundle/.... default_version_source_location_uri | Stage or workspace path that the default version was created from. default_version_git_commit_hash | Git commit hash of the default version, if its source is backed by a Git repository. last_version_name | Name of the most recently added version. last_version_alias | Alias of the most recently added version. last_version_location_uri | Location of the most recently added version’s files. last_version_source_location_uri | Stage or workspace path that the most recently added version was created from. last_version_git_commit_hash | Git commit hash of the most recently added version, if its source is backed by a Git repository. live_version_location_uri | Location of the live version, if the Code Bundle has one. created_on | Date and time when the Code Bundle was created. owner_role | Role that owns the Code Bundle. owner_role_type | Type of role that owns the Code Bundle. container_type | Type of the object that holds the Code Bundle’s source, for example Stage. container_database | Database of the object that holds the Code Bundle’s source. container_schema | Schema of the object that holds the Code Bundle’s source. container_name | Name of the object that holds the Code Bundle’s source.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes USAGE or OWNERSHIP | Code Bundle | For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by