नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Applies to:
Databricks SQL
Databricks Runtime 13.3 LTS and above
Unity Catalog only
Alters the name or owner of a volume.
Syntax
ALTER VOLUME volume_name
{ RENAME TO new_volume_name |
[ SET ] OWNER TO principal |
SET TAGS clause |
UNSET TAGS clause }
Parameters
-
The name of the volume to be altered.
RENAME TO new_volume_name
Renames
volume_nametonew_volume_name. The new name must be unique and the schema must not change.[ SET ] OWNER TO principal
Transfers ownership of the volume to
principal.SETis allowed as an optional keyword.SET TAGS ( { tag_name = tag_value } [, ...] )Applies to:
Databricks SQL
Databricks Runtime 14.3 and aboveApply tags to the volume. You need to have
APPLY TAGpermission to add tags to the volume.tag_name
A literal
STRING. Thetag_namemust be unique among all tags associated with the specified volume.tag_value
A literal
STRING.
UNSET TAGS ( tag_name [, ...] )Applies to:
Databricks SQL
Databricks Runtime 14.3 and aboveRemove tags from the volume. You need to have
APPLY TAGpermission to remove tags from the volume.tag_name
A literal
STRING. Thetag_namemust be unique among all tags associated with the specified volume.
Examples
- Change the owner of the volume `my_volume`
> ALTER VOLUME my_volume SET OWNER TO alf@melmak.et
OK
- Change the name of the volume from `my_volume` to `new_name_volume`
> ALTER VOLUME my_volume RENAME TO new_name_volume
OK
-- Applies three tags to the volume named `my_volume`.
> ALTER VOLUME my_volume SET TAGS ('tag1' = 'val1', 'tag2' = 'val2', 'tag3' = 'val3');
OK
-- Removes three tags from the volume named `my_volume`.
> ALTER VOLUME my_volume UNSET TAGS ('tag1', 'tag2', 'tag3');
OK