Purchases a plan by calling PurchaseRatePlan.
Operation description
Obtain the plan name and plan code by calling the DescribeRatePlanPrice operation.
If the acceleration region is not set to overseas, the site must have a valid China Internet Content Provider (ICP) filing.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:PurchaseRatePlan |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PlanName |
string |
No |
The plan name. China site
International site
Note
Note: For Enterprise Edition plans, the plan name is provided after backend configuration. |
basic |
| PlanCode |
string |
No |
The plan code. China site
International site
|
basicplan |
| SiteName |
string |
No |
The site name. |
test.com |
| Coverage |
string |
No |
The acceleration region. Valid values:
|
domestic |
| Type |
string |
No |
The site access type. Valid values:
Valid values:
|
CNAME |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
|
true |
| Period |
integer |
No |
The purchase period, in months. This parameter is required when you directly call this operation. |
1 |
| ChargeType |
string |
No |
The billing method. Valid values:
Valid values:
|
PREPAY |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Set this parameter to true when you directly call this operation. |
true |
| Amount |
integer |
No |
The number of plans to purchase. |
1 |
| Channel |
string |
No |
The channel field. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
30423A7F-A83D-1E24-B80E-86DD25790758 |
| OrderId |
string |
The order ID. |
123123 |
| InstanceId |
string |
The instance ID. |
esa-site-ads11w |
Examples
Success response
JSON format
{
"RequestId": "30423A7F-A83D-1E24-B80E-86DD25790758",
"OrderId": "123123",
"InstanceId": "esa-site-ads11w"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.