All Products
Search
Document Center

Object Storage Service:get-bucket-transfer-acceleration

Last Updated:Aug 05, 2024

Queries the transfer acceleration configurations of a bucket.

Usage notes

  • Only the owner of a bucket or RAM users granted with the oss:PutBucketTransferAcceleration permission can initiate requests to query the transfer acceleration configurations of a bucket.

  • If transfer acceleration is not configured for the bucket, the command does not return any transfer acceleration configuration.

For more information about transfer acceleration, see Transfer acceleration in the Developer Guide.

Command syntax

ossutil api get-bucket-transfer-acceleration --bucket value [flags]

Parameter

Type

Description

--bucket

string

The name of the bucket.

Note

For more information, see Command-line options.

Examples

  • Query the transfer acceleration configurations of a bucket named examplebucket bucket.

    ossutil api get-bucket-transfer-acceleration --bucket examplebucket
  • Query the transfer acceleration configurations of a bucket named examplebucket bucket and format the output in JSON.

    ossutil api get-bucket-transfer-acceleration --bucket examplebucket --output-format json
  • Query the transfer acceleration configurations of a bucket named examplebucket bucket and format the output in YAML.

    ossutil api get-bucket-transfer-acceleration --bucket examplebucket --output-format yaml