Expanding Capacities of Multiple Disks in a Batch
Function
This API is used to expand the capacities of multiple pay-per-use and yearly/monthly disks in a batch. - - -
Constraints
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, no identity policy-based permission required for calling this API.
URI
POST /v5/{project_id}/volumes/batch-extend
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | The project ID. For details, see Obtaining a Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| volumes | Yes | Array of VolumesForBatchResizeVolume objects | The list of disks to be expanded. |
| bss_param | No | The extended parameter of yearly/monthly billing. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | String | The disk ID. |
| new_size | Yes | Integer | The new disk size, in GiB. This parameter value must be greater than the original disk size and less than the maximum size allowed for a disk. The maximum disk size: |
Response Parameters
Status code: 202
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Definition The task ID. This parameter is returned when the disk is billed on a pay-per-use basis. For details about how to query the task status, see Querying Task Status. Range N/A |
| order_id | String | Definition The order ID. This parameter is returned when the disk is billed on a yearly/monthly basis. If you need to pay for the order, see Paying Yearly/Monthly Product Orders. Range N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error | Error object | Definition The error code returned if an error occurs. For details about the error code, see Error Codes. Range The object that includes the error code and error message. |
| Parameter | Type | Description |
|---|---|---|
| code | String | Definition The error code returned if an error occurs. Range For details about the error code, see Error Codes. |
| message | String | Definition The error message returned if an error occurs. Range A character string that describes the error message. |
Example Requests
/v5/{project_id}/volumes/batch-extend
{
"volumes" : [ {
"id" : "756889eb-85ca-4ea5-9f07-df6b99ba1b0f",
"new_size" : 100
}, {
"id" : "36d9bbf7-8a93-4e47-8ff0-37b614aa28d6",
"new_size" : 200
} ],
"bss_param" : {
"is_auto_pay" : true
}
} Example Responses
Status code: 202
Accepted
{
"job_id" : "c6bdaf8975f9478e87365b1474e8774b"
} Status code: 400
Bad Request
{
"error" : {
"message" : "XXXX",
"code" : "XXX"
}
} Status Codes
| Status Code | Description |
|---|---|
| 202 | Accepted |
| 400 | Bad Request |
Error Codes
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