DESCRIBE EXTERNAL VOLUME¶
Describes the properties of an external volume.
DESCRIBE can be abbreviated to DESC.
- See also:
ALTER EXTERNAL VOLUME , CREATE EXTERNAL VOLUME , DROP EXTERNAL VOLUME , SHOW EXTERNAL VOLUMES
Syntax¶
DESC[RIBE] EXTERNAL VOLUME <name>
Parameters¶
name
Specifies the identifier for the external volume to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes (for example,
"My object"
). Identifiers enclosed in double quotes are also case-sensitive.
Output¶
The output of the command includes the following columns, which describe the properties and metadata of the object:
Column |
Description |
---|---|
|
The parent property. This column includes the |
|
The name of the property. This column can include the properties listed in the following table. |
|
The property type. |
|
The value assigned to the property. |
|
The default property value. |
The property
column can include the following properties of an external volume object:
Property |
Description |
---|---|
|
The comment set for the external volume, if any. |
|
Specifies whether write operations are allowed for the external volume. |
|
Details for a cloud storage location associated with the external volume, where For more information about storage location properties, see CREATE EXTERNAL VOLUME. |
|
The name of the active storage location for the external volume. |
Access control requirements¶
A role used to execute this SQL command must have the following privileges at a minimum:
Privilege |
Object |
Notes |
---|---|---|
USAGE |
External volume |
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.
Usage notes¶
To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.
Examples¶
Describe an external volume:
DESC EXTERNAL VOLUME my_external_volume;
The following shows the output of DESCRIBE EXTERNAL VOLUME for an external volume with one storage location.
The property value for STORAGE_LOCATION_1
is abbreviated for display purposes.
+-------------------+--------------------+---------------+-------------------------------------------------------------------------------------------+------------------+
| parent_property | property | property_type | property_value | property_default |
|-------------------+--------------------+---------------+-------------------------------------------------------------------------------------------+------------------|
| | ALLOW_WRITES | Boolean | true | true |
| STORAGE_LOCATIONS | STORAGE_LOCATION_1 | String | {"NAME":"my_storage_us_west","STORAGE_PROVIDER":"S3","STORAGE_BASE_URL":"s3://...", ...} | |
| STORAGE_LOCATIONS | ACTIVE | String | my_storage_us_west | |
+-------------------+--------------------+---------------+-------------------------------------------------------------------------------------------+------------------+