
# 查询存储类型列表 - ListStorageTypes
#### 功能介绍
查询支持的存储类型列表，包括步长等信息。
#### 调试
您可以在[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/IES/doc?api=ListStorageTypes)中调试该接口，支持自动认证鉴权。API Explorer可以自动生成SDK代码示例，并提供SDK代码示例调试功能。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-cloudpond/ies_05_0800.html)。
- 如果使用身份策略授权，需具备如下身份策略权限。
  
  | 授权项                   | 访问级别 | 资源类型（\*为必须） | 条件键 | 别名                          | 依赖的授权项 |
  |:---|:---|:---|:---|:---|:---|
  | ies::listStorageTypes | List | -           | -   | ies:system:listStorageTypes | -      |
     
  
 
#### URI
GET /v2/{domain_id}/storage-types
表1路径参数 
| 参数        | 是否必选 | 参数类型   | 描述           |
|:---|:---|:---|:---|
| domain_id | 是    | String | path中租户的账号ID |
   
表2Query参数 
| 参数        | 是否必选 | 参数类型    | 描述    |
|:---|:---|:---|:---|
| 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                             | 分页信息   |
   
 表5StorageTypeOption 
| 参数                   | 参数类型              | 描述                  |
|:---|:---|:---|
| id                   | String            | 存储类型id，uuid         |
| name                 | String            | 售卖存储类型              |
| zone_code            | String            | 地区编码，表示允许在这个国家购买部署  |
| expand_capacity_step | Integer           | 步长，为0时仅可购买gears中的容量 |
| supported_capacities | Array of integers | 固定购买容量，为空时直接按步长购买   |
   
 表6PageInfo 
| 参数            | 参数类型    | 描述     |
|:---|:---|:---|
| 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 |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-cloudpond/ErrorCode.html)。
