Disables the metadata management feature for a bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to disable the metadata management feature for a bucket. If you want to disable the metadata management feature for a bucket by using a RAM user or STS Security Token Service (STS), you must have the
oss:CloseMetaQuery
permission. For more information, see Attach a custom policy to a RAM user.After the metadata management feature is disabled for a bucket, OSS automatically deletes the metadata index library of the bucket and you cannot perform metadata indexing.
Command syntax
ossutil api close-meta-query --bucket value [flags]
Parameter | Type | Description |
--bucket | string | The name of the bucket for which you want to disable the metadata management feature. |
The close-meta-query command corresponds to the CloseMetaQuery operation. For more information about the parameters in the CloseMetaQuery operation, see CloseMetaQuery.
For more information about supported global command-line options, see Global command-line options.
Examples
Run the following command to disable the metadata management feature for a bucket named examplebucket
:
ossutil api close-meta-query --bucket examplebucket