All Products
Search
Document Center

Object Storage Service:get-bucket-data-redundancy-transition

Last Updated:Sep 14, 2024

The command get-bucket-data-redundancy-transition is used to obtain information about redundancy type conversion tasks on OSS buckets.

Usage notes

By default, an Alibaba Cloud account has the permissions to query information about redundancy type conversion tasks on OSS buckets. Making query requests as a RAM user or by using Security Token Service (STS) requires oss:GetBucketDataRedundancyTransition permissions. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api get-bucket-data-redundancy-transition --bucket value --redundancy-transition-taskid value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

--redundancy-transition-taskid

string

ID of the redundancy type conversion task.

Note
  • The get-bucket-data-redundancy-transition command corresponds to the GetBucketDataRedundancyTransition operation. For more information about the parameters in the GetBucketDataRedundancyTransition operation, see GetBucketDataRedundancyTransition.

  • For more information about supported global command-line options, see Command-line options.

Examples

  • Query the conversion task of examplebucket.

    ossutil api get-bucket-data-redundancy-transition --bucket examplebucket --redundancy-transition-taskid 123
  • Query the conversion task of examplebucket and display the result in JSON format.

    ossutil api get-bucket-data-redundancy-transition --bucket examplebucket --redundancy-transition-taskid 123 --output-format json
  • Query the conversion task of examplebucket and display the result in YAML format.

    ossutil api get-bucket-data-redundancy-transition --bucket examplebucket --redundancy-transition-taskid 123 --output-format yaml