All Products
Search
Document Center

Object Storage Service:get-bucket-archive-direct-read

Last Updated:Mar 20, 2026

Use get-bucket-archive-direct-read to check whether real-time access to Archive objects is enabled for a bucket.

Prerequisites

Before you begin, ensure that you have:

  • An Alibaba Cloud account, or a RAM user or Security Token Service (STS) identity with the oss:GetBucketArchiveDirectRead permission. For more information, see Attach a custom policy to a RAM user.

Note: Alibaba Cloud accounts have this permission by default.

Syntax

ossutil api get-bucket-archive-direct-read --bucket <value> [flags]

Parameters

ParameterTypeDescription
--bucketstringName of the bucket.

For global flags (including --output-format json and --output-format yaml), see Command-line options.

Examples

Check whether real-time access to Archive objects is enabled for examplebucket:

ossutil api get-bucket-archive-direct-read --bucket examplebucket

Check the configuration and display the result in JSON format:

ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format json

Check the configuration and display the result in YAML format:

ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format yaml

References

For full API details, see GetBucketArchiveDirectRead.