All Products
Search
Document Center

ENS:ResizeDisk

Last Updated:Mar 12, 2024

Resizes a pay-as-you-go disk that you purchase.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DiskIdstringYes

The ID of the disk that you want to resize.

d-5tzm9wnhzlhjzcbtxo465****
NewSizestringYes

The size of the disk that you want to resize. Unit: GiB.

100

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

689412F2-8402-181E-8C87-1EF62331DCC4
OrderIdstring

The order ID.

21522202681****

Examples

Sample success responses

JSONformat

{
  "RequestId": "689412F2-8402-181E-8C87-1EF62331DCC4",
  "OrderId": "21522202681****"
}

Error codes

HTTP status codeError codeError message
400PARAM_NOT_ENOUGHInsufficient parameters entered
400INSTANCE_ID_NOT_FOUNDInstance information not found
400ENS_BUY_USER_ILLEGALUser is illegal
400InvalidParameterInsufficient parameters entered
400ENS_BUY_COUNT_LESSToo many resources purchased
400SIZE_ILLEGALThe purchased capacity is illegal
400ENS_BUY_STORE_ENOUGHInsufficient inventory of purchased resources
400OrderFailedOrder failed
400ENS_BUY_DISK_STATUS_ILLEGALThe disk status is invalid
400SaleControl_VerificationFailedYou did not pass the salecontrol verification.Please contact the product.
400NoPermissionPermission denied.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-05-09The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change