查询存储池列表
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v1/{domain_id}/storage-pools
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
domain_id |
是 |
String |
path中租户的账号ID |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户Token |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
storage_pools |
Array of StoragePool objects |
存储池列表 |
page_info |
PageInfo object |
分页信息 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
存储池ID |
name |
String |
存储池名称 |
edge_site_id |
String |
边缘小站ID |
storage_type |
String |
存储类型。 |
status |
String |
存储池状态。 |
assigned_size |
Integer |
存储池大小。 当前购买的存储容量。 |
resource_spec_code |
String |
资源规格编码 |
product_info |
ProductInfo object |
商品归属产品属性信息 |
capacity |
Integer |
总容量 |
market_options |
MarketOptions object |
计费信息 |
created_at |
DateTime |
创建时间 |
updated_at |
DateTime |
更新时间 |
effected_at |
DateTime |
生效时间 |
参数 |
参数类型 |
描述 |
---|---|---|
cloud_service_type |
String |
云服务类型 |
resource_type |
String |
资源类型 |
resource_spec_code |
String |
资源编码 |
参数 |
参数类型 |
描述 |
---|---|---|
charge_mode |
String |
计费模式。 |
prepaid_options |
PrepaidOptions object |
包周期计费信息 |
strategies |
Array of Strategy objects |
销售策略列表 |
请求示例
查询存储池列表
GET https://{ies_endpoint}/v1/{domain_id}/storage-pools
响应示例
状态码:200
successful operation
{ "storage_pools" : [ { "id" : "d70a8f73-edef-4b71-beb3-7dbc22f0365e", "name" : "SAS-ojoiv", "edge_site_id" : "a4a36874-c41b-4295-9fd5-6823864fd564", "storage_type" : "SAS", "status" : "AVAILABLE", "assigned_size" : 36, "resource_spec_code" : "ies.blockstorage.gear1", "product_info" : { "cloud_service_type" : "hws.service.type.ies", "resource_type" : "hws.resource.type.iesvolume", "resource_spec_code" : "ies.blockstorage.gear1" }, "capacity" : 144, "market_options" : { "charge_mode" : "prepaid", "prepaid_options" : { "order_id" : "CS2201181056V3SK6", "product_id" : "OFFI644832402269233154", "pay_mode" : "FULL" } }, "created_at" : "2022-01-18T02:56:02.76091Z", "updated_at" : "2022-01-18T02:59:56.5601Z", "effected_at" : "2022-01-19T02:59:25Z" } ], "page_info" : { "current_count" : 1 } }
状态码
状态码 |
描述 |
---|---|
200 |
successful operation |
错误码
请参见错误码。