全部產品
Search
文件中心

Object Storage Service:list-resource-pool-buckets

更新時間:Jan 07, 2025

list-resource-pool-buckets用於列舉特定資源集區中的Bucket列表。

注意事項

重要

當前資源集區QoS為邀測功能,尚未對所有使用者開放使用。如果您在某個地區的OSS效能達到了500Gbps及以上,您可以聯絡支援人員申請使用。

阿里雲帳號預設擁有列舉資源集區資訊的許可權。如果您需要通過RAM使用者或者STS的方式進行列舉,您必須擁有oss:ListResourcePoolBuckets許可權。具體操作,請參見為RAM使用者授權自訂的權限原則

命令格式

ossutil api invoke-operation --op-name list-resource-pool-buckets --method GET --parameters resourcePool=<resource-pool> --parameters resourcePoolBuckets [--parameters continuation-token=<continuation-token>] [--parameters max-keys=<max-keys>]

參數

類型

說明

--parameters

stringArray

請求的查詢參數,採用 k[=v] 格式,如max-keys=10、delete。

說明

關於支援的全域命令列選項,請參見支援的全域命令列選項

使用樣本

列出資源集區 examplePool 內的儲存空間列表,此請求從儲存空間標識 examplebucket 的位置開始,並限制返回的最大條目數為10。命令樣本如下:

ossutil api invoke-operation --op-name list-resource-pool-buckets --method GET --parameters resourcePool=examplePool --parameters resourcePoolBuckets --parameters continuation-token=examplebucket --parameters max-keys=10