Enables the metadata management feature for a bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to enable the metadata management feature. If you want to enable the metadata management feature by using a RAM user or Security Token Service (STS), you must have the
oss:OpenMetaQuery
permission. For more information, see Attach a custom policy to a RAM user.After you enable the metadata management feature for a bucket, Object Storage Service (OSS) creates a metadata index library for the bucket and creates metadata indexes for all objects in the bucket. After the metadata index library is created, OSS continues to perform quasi-real-time scans on incremental objects in the bucket and creates metadata indexes for the incremental objects.
Command syntax
ossutil api open-meta-query --bucket value [flags]
Parameter | Type | Description |
--bucket | string | The name of the bucket for which you want to enable the metadata management feature. |
The open-meta-query command corresponds to the OpenMetaQuery operation. For more information about the parameters in the OpenMetaQuery operation, see OpenMetaQuery.
For more information about supported global command-line options, see Global command-line options.
Examples
Run the following command to enable the metadata management feature for a bucket named examplebucket
:
ossutil api open-meta-query --bucket examplebucket