Updated on 2026-01-09 GMT+08:00

Listing Disk Types

Function

Obtain the disk types supported by each AZ.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    css:cluster:listDiskType

    List

    -

    -

    -

    evs:types:get

URI

GET /v1.0/{project_id}/disktypes

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name.

Constraints:

N/A

Value range:

Project ID of the account.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

diskTypes

Array of DiskType objects

Definition:

Disk type list.

Value range:

N/A

Table 3 DiskType

Parameter

Type

Description

availabilityZone

String

Definition:

Availability zone (AZ).

Value range:

N/A

volumeNames

Array of strings

Definition:

Storage type.

Value range:

  • SATA: common I/O

  • SAS: high I/O

  • SSD: ultra-high I/O

  • ESSD: extreme SSD

Example Requests

An example request for obtaining the disk types supported by each AZ.

GET https://{Endpoint}/v1.0/{project_id}/disktypes

Example Responses

Status code: 200

Request succeeded.

{
  "diskTypes" : [ {
    "availabilityZone" : "cn-north-1a",
    "volumeNames" : [ "SATA" ]
  }, {
    "availabilityZone" : "cn-north-1b",
    "volumeNames" : [ "SATA", "SAS" ]
  }, {
    "availabilityZone" : "cn-north-1c",
    "volumeNames" : [ "SATA", "SAS", "SSD" ]
  } ]
}

Status Codes

Status Code

Description

200

Request succeeded.

400

The request is invalid.

The client should modify the request instead of re-initiating it.

403

The request is rejected.

The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

Error Codes

See Error Codes.