All Products
Search
Document Center

Object Storage Service:open-meta-query

Last Updated:Jun 04, 2026

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:OpenMetaQuery permission. 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

Examples

Enable metadata management for a bucket named examplebucket:

ossutil api open-meta-query --bucket examplebucket