全部產品
Search
文件中心

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

更新時間:Sep 07, 2024

create-bucket-data-redundancy-transition用於為儲存空間(Bucket)建立儲存冗餘轉換任務。

注意事項

  • 阿里雲帳號預設擁有查看Bucket的TLS版本設定的許可權。如果您需要通過RAM使用者或者STS的方式進行查看,您必須擁有oss:CreateBucketDataRedundancyTransition許可權。具體操作,請參見為RAM使用者授權自訂的權限原則

  • Bucket的儲存冗餘類型必須為本地備援儲存體。OSS僅支援從本地備援儲存體轉換為同城冗餘儲存。不支援從同城冗餘儲存轉換為本地備援儲存體。

  • Bucket的儲存類型必須為標準儲存、低頻訪問儲存或Archive Storage,但Bucket中的檔案的儲存類型可以為冷Archive Storage和深度冷Archive Storage。冷Archive Storage和深度冷Archive Storage的檔案轉換後依然為本地備援儲存體。冷Archive Storage和深度冷Archive Storage的Bucket不支援轉換儲存冗餘類型。

命令格式

ossutil api create-bucket-data-redundancy-transition --bucket value --target-redundancy-type value [flags]

參數

類型

說明

--bucket

string

Bucket名稱。

--target-redundancy-type

string

目標儲存冗餘類型。

說明

使用樣本

  • 為儲存空間examplebucket建立儲存冗餘轉換任務。

    ossutil api create-bucket-data-redundancy-transition --bucket examplebucket --target-redundancy-type ZRS
  • 為儲存空間examplebucket建立儲存冗餘轉換任務,以JSON格式顯示。

    ossutil api create-bucket-data-redundancy-transition --bucket examplebucket --target-redundancy-type ZRS --output-format json
  • 為儲存空間examplebucket建立儲存冗餘轉換任務,以YAML格式顯示。

    ossutil api create-bucket-data-redundancy-transition --bucket examplebucket --target-redundancy-type ZRS --output-format yaml