全部產品
Search
文件中心

Object Storage Service:get-bucket-replication-progress

更新時間:Aug 26, 2024

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