Enables metadata management for a bucket.
Usage notes
-
An Alibaba Cloud account can enable metadata management by default. RAM users and Security Token Service (STS) users require the
oss:OpenMetaQuerypermission. Attach a custom policy to a RAM user. -
After you enable metadata management for a bucket, OSS creates a metadata index library and indexes all objects in the bucket. OSS continues to perform quasi-real-time scans to index incremental objects.
Command syntax
ossutil api open-meta-query --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The bucket for which to enable metadata management. |
Note
-
The open-meta-query command maps to the OpenMetaQuery API operation.
-
This command also supports Global command-line options.
Examples
Enable metadata management for a bucket named examplebucket:
ossutil api open-meta-query --bucket examplebucket