Listing Disk Types
Function
Obtain the disk types supported by each AZ.
Calling Method
For details, see Calling APIs.
URI
GET /v1.0/{project_id}/disktypes
| 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 Range Project ID of an account. The value contains 32 characters, consisting of lowercase letters and digits. Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| diskTypes | Array of DiskType objects | Definition Disk type list, including the specifications and AZ information. Range N/A |
Example Requests
Query the disk types supported in each availability zone (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.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot