Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Databricks SQL
Databricks Runtime 18.1 and above
Unity Catalog only
Alters the description or the set of allowed values for a governed tag.
To execute this statement, you must have the MANAGE permission on the governed tag.
Syntax
ALTER GOVERNED TAG tag_key { SET DESCRIPTION description | SET VALUES ( value_name [, ...] ) }
Parameters
tag_key
The tag key of an existing governed tag in the account. If there is no governed tag with this tag key, Azure Databricks returns a
NOT_FOUNDerror.SET DESCRIPTION description
Updates the description for the governed tag.
descriptionis a STRING literal.SET VALUES ( value_name [, ...] )
Updates the allowed values for the governed tag. This operation is declarative, meaning the provided list replaces the existing allowed values entirely. Any previously defined values not included in the new list are removed.
value_name
A STRING literal. The name for an allowed value. Case sensitive.
Examples
-- Remove all allowed values, making the tag key-only.
> ALTER GOVERNED TAG isPii SET VALUES ();
-- Replace the allowed values list.
> ALTER GOVERNED TAG sensitivity_level SET VALUES ('low', 'medium', 'high');
-- Update the description.
> ALTER GOVERNED TAG pii SET DESCRIPTION 'Indicates what kind of personal identifiable information the asset contains';