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. |
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 123Query the conversion task of
examplebucketand display the result in JSON format.ossutil api get-bucket-data-redundancy-transition --bucket examplebucket --redundancy-transition-taskid 123 --output-format jsonQuery the conversion task of
examplebucketand display the result in YAML format.ossutil api get-bucket-data-redundancy-transition --bucket examplebucket --redundancy-transition-taskid 123 --output-format yaml