Check the progress of a data replication task for a specific bucket and replication rule.
Prerequisites
Before you begin, ensure that you have:
The
oss:GetBucketReplicationProgresspermission. For more information, see Attach a custom policy to a RAM userThe rule ID of the replication rule to query.
Usage notes
Only the bucket owner can query replication progress.
You can run this command from any OSS endpoint.
Syntax
ossutil api get-bucket-replication-progress --bucket <value> --rule-id <value> [flags]Parameters in [ ] are optional. All other parameters are required.
| Parameter | Type | Description |
|---|---|---|
--bucket | string | The name of the bucket. |
--rule-id | string | The ID of the data replication rule. |
get-bucket-replication-progresscorresponds to theGetBucketReplicationProgressAPI operation. For the full parameter reference, see GetBucketReplicationProgress. For supported global flags, see Global command-line options.
Examples
All examples query the progress of the replication rule replication_1 for the bucket examplebucket. Use --output-format to control the output format.
Default output
ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1JSON output
ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1 --output-format jsonYAML output
ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1 --output-format yamlWhat's next
GetBucketReplicationProgress — Full API reference with response field descriptions