Creates a pay-as-you-go data disk.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateDisk | The operation that you want to perform. Set the value to CreateDisk. |
InstanceChargeType | String | Yes | PostPaid | The billing method of the instance. Valid values:
|
EnsRegionId | String | Yes | cn-chengdu-telecom | The ID of the edge node. |
Category | String | Yes | cloud_efficiency | The category of the disk. Valid values:
|
Size | String | Yes | 20 | The size of the disk. Unit: GB. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7030AB96-57CF-1C68-9FEE-D60E547FD79C | The ID of the request. |
OrderId | String | 21127020370**** | The ID of the order. Multiple IDs are separated by commas (,). Note This parameter is not returned for the pay-as-you-go billing method. |
InstanceIds | Array of String | d-5rpvziragkacvop665m3h**** | The IDs of the instances. |
Examples
Sample requests
http(s)://ens.aliyuncs.com/?Action=CreateDisk
&InstanceChargeType=PostPaid
&EnsRegionId=cn-chengdu-telecom
&Category=cloud_efficiency
&Size=20
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateDiskResponse>
<RequestId>7030AB96-57CF-1C68-9FEE-D60E547FD79C</RequestId>
<OrderId>21127020370****</OrderId>
<InstanceIds>d-5rpvziragkacvop665m3h****</InstanceIds>
</CreateDiskResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "7030AB96-57CF-1C68-9FEE-D60E547FD79C",
"OrderId" : "21127020370****",
"InstanceIds" : [ "d-5rpvziragkacvop665m3h****" ]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Invalid%s | The specified parameter %s is invalid. | The error message returned because the value of the specified parameter is invalid. |
400 | Missing%s | You must specify the parameter %s. | The error message returned because a required parameter is left empty. |
400 | NoPermission | Permission denied. | The error message returned because you do not have the required permissions. Ask the administrator to grant you the permissions. |
For a list of error codes, see Service error codes.