All Products
Search
Document Center

Object Storage Service:get-meta-query-status

Last Updated:Sep 24, 2024

The get-meta-query-status command is used to query information about the metadata index library of a bucket.

Usage notes

By default, an Alibaba Cloud account has the permissions to query information about the metadata index library of a bucket. To make query requests as a RAM user or by using Security Token Service (STS), you must have the oss:GetMetaQueryStatus permission. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api get-meta-query-status --bucket value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

Note
  • The get-meta-query-status command corresponds to the GetMetaQueryStatus operation. For more information about the parameters in the GetMetaQueryStatus operation, see GetMetaQueryStatus.

  • For more information about supported global command-line options, see Command-line options.

Examples

  • Query information about the metadata index library of examplebucket.

    ossutil api get-meta-query-status --bucket examplebucket
  • Query information about the metadata index library of examplebucket and display the result in the JSON format.

    ossutil api get-meta-query-status --bucket examplebucket --output-format json
  • Query information about the metadata index library of examplebucket and display the result in the YAML format.

    ossutil api get-meta-query-status --bucket examplebucket --output-format yaml