get-bucket-metadata-configuration
The get-bucket-metadata-configuration command queries the metadata management (Metadata) configuration of a bucket, including the configurations and states of the journal table and the live inventory table.
Usage notes
Metadata management (Metadata) is in invitational preview. It is not yet available to all users and is available only in regions where Table Bucket is supported. To use this feature, contact technical support to apply. In addition, you can enable, modify, or disable metadata management in the OSS console.
By default, an Alibaba Cloud account has the permissions to query the metadata configuration of a bucket. To query the metadata configuration of a bucket by using a RAM user or Security Token Service (STS), you must have the oss:GetBucketMetadataTableConfiguration permission. For more information, see Attach a custom policy to a RAM user.
Syntax
ossutil api get-bucket-metadata-configuration --bucket examplebucket
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the target bucket. |
This command requires ossutil 2.4.1 or later. For earlier versions, call the corresponding operation by using the invoke-operation generic command.
For more information about supported global command-line options, see Global command-line options.
Examples
Query the metadata configuration of a bucket named examplebucket. Sample command:
ossutil api get-bucket-metadata-configuration --bucket examplebucket