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
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 disk type change, see section "Changing the EVS Disk Type" in the Elastic Volume Service User Guide. NOTE:
|
Response
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" : "SAS"}}
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.
- Function
- URI
- Request
- Response
- Example Requests
- Example Responses
- Status Codes
- Error Codes