The command get-bucket-archive-direct-read is used to determine whether real-time access to Archive objects is enabled for OSS buckets.
Usage notes
By default, an Alibaba Cloud account has the permissions to query whether real-time access to Archive objects is enabled for OSS buckets. Making query requests as a RAM user or by using Security Token Service (STS) requires oss:GetBucketArchiveDirectRead
permissions. For more information, see Attach a custom policy to a RAM user.
Command syntax
ossutil api get-bucket-archive-direct-read --bucket value [flags]
Parameter | Type | Description |
--bucket | string | Name of the bucket. |
The get-bucket-archive-direct-read command corresponds to the GetBucketArchiveDirectRead operation. For more information about the parameters in the GetBucketArchiveDirectRead operation, see GetBucketArchiveDirectRead.
For more information about supported global command-line options, 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 whether real-time access to Archive objects is enabled for
examplebucket
and display the result in JSON format.ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format json
Check whether real-time access to Archive objects is enabled for
examplebucket
and display the result in YAML format.ossutil api get-bucket-archive-direct-read --bucket examplebucket --output-format yaml