Purchases a resource plan.
Operation description
This operation involves billing. Before you call this operation, make sure that you fully understand the billing methods and pricing of Alibaba Cloud CloudPhone.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Period |
integer |
No |
The duration for which you want to purchase the resource. The unit is specified by |
1 |
| PeriodUnit |
string |
No |
The unit of the duration for which you want to purchase the resource. Valid values:
Valid values:
|
Month |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
Note
If your payment method has an insufficient balance, set this parameter to false. An unpaid order is generated. You can log on to the CloudPhone console to complete the payment. |
false |
| CreditAmount |
string |
No |
The credit quota. |
10000.0 |
| PromotionId |
string |
No |
The ID of the promotional campaign. |
50003308011**** |
| MobileAgentPackageSpec |
string |
No |
The resource plan specification. Valid values:
|
advanced |
| InstanceName |
string |
No |
The name of the node instance. |
CloudPhone |
| CreditConfig |
string |
No |
The credit limit configuration. |
1 |
| Amount |
string |
No |
The number of resource plans. |
1 |
| PaidCallbackUrl |
string |
No |
The redirect URL after a successful payment. |
https://aim.wuying.aliyun.com/nodes |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal for the instance. Valid values:
|
false |
| BizRegionId |
string |
No |
The region in which the instance resides. Currently, only cn-hangzhou is supported. Valid values:
|
cn-hangzhou |
| ImageId |
string |
No |
||
| PackageSpecId |
integer |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
69BCBBE4-FCF2-59B8-AD9D-531EB422**** |
| OrderId |
string |
The order ID. |
22326560487**** |
| MobileAgentPackageIds |
array |
The list of resource plan IDs. |
|
|
string |
The resource plan ID. |
cmag-sbbhdajsds**** |
Examples
Success response
JSON format
{
"RequestId": "69BCBBE4-FCF2-59B8-AD9D-531EB422****",
"OrderId": "22326560487****",
"MobileAgentPackageIds": [
"cmag-sbbhdajsds**** "
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.