文档

get-bucket-replication-progress

更新时间:

get-bucket-replication-progress接口用于获取某个存储空间(Bucket)的数据复制进度。

注意事项

  • 要获取存储空间的数据复制进度,您必须有oss:GetBucketReplicationProgress权限。具体操作,请参见为RAM用户授权自定义的权限策略

  • 只有Bucket的拥有者才能获取Bucket的数据复制规则。该请求可以从任何一个OSS的Endpoint发起。

命令格式

ossutil api get-bucket-replication-progress --bucket value --rule-id value [flags]

参数

类型

说明

--bucket

string

Bucket名称。

--rule-id

string

复制规则对应的ID。

说明

使用示例

  • 获取存储空间examplebucket复制规则ID为replication_1的数据复制进度。

    ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1
  • 获取存储空间examplebucket复制规则ID为replication_1的数据复制进度,以JSON格式显示。

    ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1 --output-format json
  • 获取存储空间examplebucket复制规则ID为replication_1的数据复制进度,以YAML格式显示。

    ossutil api get-bucket-replication-progress --bucket examplebucket --rule-id replication_1 --output-format yaml