文档首页/ CloudPond云服务/ API参考/ API/ 存储类型/ 查询存储类型列表
更新时间:2025-09-04 GMT+08:00
分享

查询存储类型列表

功能介绍

查询支持的存储类型列表,包括步长等信息

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v2/{domain_id}/storage-types

表1 路径参数

参数

是否必选

参数类型

描述

domain_id

String

path中租户的账号ID

表2 Query参数

参数

是否必选

参数类型

描述

zone_code

String

地区编码

name

String

存储类型

limit

Integer

每页的数量

marker

String

分页标识

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

storage_types

Array of StorageTypeOption objects

存储类型列表

page_info

PageInfo object

分页信息

表5 StorageTypeOption

参数

参数类型

描述

id

String

存储类型id,uuid

name

String

售卖存储类型

zone_code

String

地区编码,表示允许在这个国家购买部署

expand_capacity_step

Integer

步长,为0时仅可购买gears中的容量

supported_capacities

Array of integers

固定购买容量,为空时直接按步长购买

表6 PageInfo

参数

参数类型

描述

next_marker

String

下一页标识。

current_count

Integer

当前页数量。

请求示例

查询存储类型列表

GET https://{ies_endpoint}/v2/{domain_id}/storage-types

响应示例

状态码:200

successful operation

{
  "storage_types" : [ {
    "id" : "00000000-0000-000-0000-000000000000",
    "name" : "SAS",
    "zone_code" : "CN",
    "expand_capacity_step" : 20,
    "supported_capacities" : [ 35, 70, 140 ]
  } ],
  "page_info" : {
    "current_count" : 1
  }
}

状态码

状态码

描述

200

successful operation

错误码

请参见错误码

相关文档