Changing the EVS Disk Type
Function
This API is used to change the type of a disk.
URI
POST /v2/{project_id}/volumes/{volume_id}/retype
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | The project ID. |
| volume_id | Yes | String | The disk ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| os-retype | Yes | RetypeVolume object | The request body of the disk type change. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| new_type | Yes | String | The new disk type. For details about the supported changes between disk types, see section "Changing the EVS Disk Type" in the Elastic Volume Service User Guide. NOTE: If the specified disk type is not available in the AZ, the disk type change will fail. |
Response Parameters
Status code: 202
| Parameter | Type | Description |
|---|---|---|
| job_id | String | The task ID. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error | Error object | The error code returned if an error occurs. For details about the error code, see Error Codes. |
| Parameter | Type | Description |
|---|---|---|
| code | String | The error code returned if an error occurs. For details about the error code, see Error Codes. |
| message | String | The error message returned if an error occurs. |
Example Requests
https://{endpoint}/v2/{project_id}/volumes/{volume_id}/retype
{
"os-retype" : {
"new_type" : "SSD"
}
} Example Responses
Status code: 202
Accepted
- Example 1
{ "job_id" : "4011af9965d85d3c0165d8628c650007" }
Status code: 400
Bad Request
{
"error" : {
"message" : "XXXX",
"code" : "XXX"
}
} Status Codes
| Status Code | Description |
|---|---|
| 202 | Accepted |
| 400 | Bad Request |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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