Queries details about one or more created disks in a specified region.


You can specify multiple request parameters such as InstanceId and DiskIds to be queried. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListDisks

The operation that you want to perform. Set the value to ListDisks.

RegionId String Yes cn-hangzhou

The ID of the region.

InstanceId String No 2ad1ae67295445f598017499dc****

The ID of the simple application server.

DiskIds String No ["d-bp14wq0149cpp2x****", "d-bp14wq0149cpp2y****"]

The IDs of disks. The value can be a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,).

PageSize Integer No 10

The number of entries to return on each page.

Maximum value: 100.

Default value: 10.

PageNumber Integer No 1

The number of the page to return.

Default value: 1.

Response parameters

Parameter Type Example Description
Disks Array of Disk

Details about the disks.

Category String ESSD

The category of the disk. Valid values:

  • ESSD: enhanced SSD (ESSD) at performance level 0 (PL0)
  • SSD: standard SSD
CreationTime String 2021-03-08T05:31:06Z

The time when the disk was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

Device String /dev/xvda

The device name of the disk on the simple application server.

DiskChargeType String PrePaid

The billing method of the disk.

DiskId String d-bp14wq0149cpp2x****

The ID of the disk.

DiskName String SystemDisk

The name of the disk.

DiskType String System

The type of the disk. Valid values:

  • System: system disk
  • Data: data disk
InstanceId String 2ad1ae67295445f598017499dc****

The ID of the simple application server to which the disk is attached.

RegionId String cn-hangzhou

The ID of the region.

Size Integer 50

The size of the disk. Unit: GB.

Status String In_use

The status of the disk. Valid values:

  • ReIniting: The disk is being initialized.
  • Creating: The disk is being created.
  • In_Use: The disk is being used.
  • Available: The disk can be attached.
  • Attaching: The disk is being attached.
  • Detaching: The disk is being detached.
PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned per page.

TotalCount Integer 1

The total number of disks.

RequestId String 20758A-585D-4A41-A9B2-28DA8F4F534F

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

  "TotalCount": 1,
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F",
  "PageSize": 10,
  "PageNumber": 1,
  "Disks": [
      "DiskType": "System",
      "Status": "In_use",
      "Category": "ESSD",
      "InstanceId": "2ad1ae67295445f598017499dc****",
      "Size": 50,
      "Device": "/dev/xvda",
      "CreationTime": "2021-03-08T05:31:06Z",
      "DiskChargeType": "PrePaid",
      "RegionId": "cn-hangzhou",
      "DiskName": "SystemDisk",
      "DiskId": "d-bp14wq0149cpp2x****"

Error codes

HTTP status code Error code Error message Description
404 InvalidInstanceId.NotFound The specified InstanceId does not exist. The error message returned because the specified InstanceId parameter does not exist.
500 InternalError An error occurred while processing your request. The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket.
403 InvalidParam The specified parameter value is invalid. The error message returned because a specified parameter is invalid.

For a list of error codes, visit the API Error Center.