名称
gdcloud storage buckets list - 列出所有存储分区。
摘要
gdcloud storage buckets list --location=LOCATION --location-type=LOCATION_TYPE [--project=PROJECT_ID] [flags]
示例
To list the zonal storage buckets, run:
gdcloud storage buckets list --location=zone1 --location-type=singlezone
To list asynchronous dual-zone buckets in the given locations, run:
gdcloud storage buckets list --location=zone1,zone2 --location-type=asyncdualzone
To list synchronous dual-zone buckets in the given locations, run:
gdcloud storage buckets list --location=zone1,zone2 --location-type=syncdualzone
必需标志
--location string Comma-separated list of zones where the storage buckets are available.
--location-type string Bucket location configuration type. Available options are: [AsyncDualZone, SyncDualZone, SingleZone].
可选标志
--limit int Maximum number of resources to list. The default is unlimited.
GDCLOUD 全局标志
以下标志适用于所有命令:--configuration、--format、--help、--project、--quiet。
如需了解详情,请参阅 gdcloud CLI 参考概览页面。