查询存储类型列表 - ListStorageTypes
功能介绍
查询支持的存储类型列表,包括步长等信息。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/{domain_id}/storage-types
| 
        参数  | 
      
        是否必选  | 
      
        参数类型  | 
      
        描述  | 
     
|---|---|---|---|
| 
        domain_id  | 
      
        是  | 
      
        String  | 
      
        path中租户的账号ID  | 
     
| 
        参数  | 
      
        是否必选  | 
      
        参数类型  | 
      
        描述  | 
     
|---|---|---|---|
| 
        zone_code  | 
      
        否  | 
      
        String  | 
      
        地区编码  | 
     
| 
        name  | 
      
        否  | 
      
        String  | 
      
        存储类型  | 
     
| 
        limit  | 
      
        否  | 
      
        Integer  | 
      
        每页的数量  | 
     
| 
        marker  | 
      
        否  | 
      
        String  | 
      
        分页标识  | 
     
请求参数
| 
        参数  | 
      
        是否必选  | 
      
        参数类型  | 
      
        描述  | 
     
|---|---|---|---|
| 
        X-Auth-Token  | 
      
        是  | 
      
        String  | 
      
        用户Token  | 
     
响应参数
状态码:200
| 
        参数  | 
      
        参数类型  | 
      
        描述  | 
     
|---|---|---|
| 
        storage_types  | 
      
        Array of StorageTypeOption objects  | 
      
        存储类型列表  | 
     
| 
        page_info  | 
      
        PageInfo object  | 
      
        分页信息  | 
     
请求示例
查询存储类型列表
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  | 
     
错误码
请参见错误码。