Retrieves the transfer acceleration configuration of a bucket.
Usage notes
Only the bucket owner or RAM users granted the
oss:PutBucketTransferAccelerationpermission can run this command.If transfer acceleration is not configured for the bucket, the command does not return any transfer acceleration configuration.
For more information, see Transfer acceleration in the Developer Guide.
Syntax
ossutil api get-bucket-transfer-acceleration --bucket <value> [--output-format <value>] [flags]Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | The name of the bucket. |
--output-format | string | No | The output format. Valid values: json, yaml. If not specified, the output uses the default text format. |
Note: For all supported global flags, see Command-line options.
Examples
Query the transfer acceleration configuration (default output)
ossutil api get-bucket-transfer-acceleration --bucket examplebucketQuery and format the output as JSON
ossutil api get-bucket-transfer-acceleration --bucket examplebucket --output-format jsonQuery and format the output as YAML
ossutil api get-bucket-transfer-acceleration --bucket examplebucket --output-format yamlWhat's next
To enable or disable transfer acceleration, use put-bucket-transfer-acceleration.