alterDatabaseTags
Last updated: July 13, 2026
Sets or unsets tags on an existing Snowflake database. Tags are key-value pairs used for object categorization, governance, and cost tracking.
Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the database to alter tags on | Yes |
| Boolean | Only alter if the database exists using | No |
| Nested | Key-value pairs of tags to set* | No |
| Nested | List of tag names to remove* | No |
*Exactly one of setTags or unsetTags must be specified.
setTags attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Tag name (simple, schema-qualified, or fully-qualified) | Yes |
| String | Tag value | Yes |
unsetTags attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Tag name to remove (simple, schema-qualified, or fully-qualified) | Yes |