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:GetBucketArchiveDirectReadpermission. 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
| Parameter | Type | Description |
|---|---|---|
--bucket | string | Name 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 examplebucketCheck the configuration and display the result in JSON format:
ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format jsonCheck the configuration and display the result in YAML format:
ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format yamlReferences
For full API details, see GetBucketArchiveDirectRead.