Call PurchaseRatePlan to purchase a rate plan.
Operation description
Retrieve the plan name and plan code by calling DescribeRatePlanPrice.
If the acceleration region is not overseas, your site must have a valid 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 |
Plan name. Alibaba Cloud China Website (www.aliyun.com)
Alibaba Cloud International Website (www.alibabacloud.com)
|
basic |
| PlanCode |
string |
No |
Plan code. Alibaba Cloud China Website (www.aliyun.com)
Alibaba Cloud International Website (www.alibabacloud.com)
|
basicplan |
| SiteName |
string |
No |
Site name. |
test.com |
| Coverage |
string |
No |
Acceleration region:
|
domestic |
| Type |
string |
No |
Site access type:
|
CNAME |
| AutoRenew |
boolean |
No |
Enable auto-renewal:
|
true |
| Period |
integer |
No |
Subscription period in months. |
1 |
| ChargeType |
string |
No |
Billing method:
|
PREPAY |
| AutoPay |
boolean |
No |
Enable automatic payment. |
true |
| Amount |
integer |
No |
Number of plans to purchase. |
1 |
| Channel |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response structure. |
||
| RequestId |
string |
Request ID. |
30423A7F-A83D-1E24-B80E-86DD25790758 |
| OrderId |
string |
Order ID. |
123123 |
| InstanceId |
string |
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.