Query information about the metadata index library of a bucket.
Usage notes
By default, an Alibaba Cloud account has permission to query the metadata index library of a bucket. To run this command as a RAM user or using Security Token Service (STS), grant the oss:GetMetaQueryStatus permission. For more information, see Attach a custom policy to a RAM user.
Syntax
ossutil api get-meta-query-status --bucket <value> [flags]Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | Name of the bucket |
This command corresponds to the GetMetaQueryStatus API operation. For more information about the parameters in the GetMetaQueryStatus operation, see GetMetaQueryStatus. For a full list of supported flags, see Command-line options.Examples
Query the metadata index library of examplebucket:
ossutil api get-meta-query-status --bucket examplebucketReturn the result in JSON format:
ossutil api get-meta-query-status --bucket examplebucket --output-format jsonReturn the result in YAML format:
ossutil api get-meta-query-status --bucket examplebucket --output-format yamlWhat's next
open-meta-query — Enable the metadata index library for a bucket
close-meta-query — Disable the metadata index library for a bucket
do-meta-query — Query objects in a bucket using metadata conditions