Places an order to purchase an edge smart gateway agent package.
Operation description
This operation involves billing. Before you call this operation, make sure that you fully understand the billing methods and pricing of the Cloud Phone product.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizRegionId |
string |
Yes |
The region where the agent is located. |
cn-hangzhou |
| Quantity |
integer |
Yes |
The number of packages. |
1 |
| Period |
integer |
Yes |
The subscription duration of the resource. The unit is specified by PeriodUnit. |
1 |
| PeriodUnit |
string |
Yes |
The unit of the subscription duration. Valid values:
|
Month |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
|
false |
| 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 then log on to the Cloud Phone console to complete the payment. |
false |
| ClientToken |
string |
No |
The idempotency token. |
ETnLKlblzczshOTUbOCz**** |
| PromotionId |
string |
No |
The ID of the promotional activity. |
50003308011**** |
| DeviceClass |
string |
No |
The device form factor. |
BOX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC****** |
| OrderId |
integer |
The order ID. |
22326560487**** |
| PackageIds |
array |
The list of package IDs. |
|
|
string |
The package ID. |
cmag-0c1g77wjljl9hc**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC******",
"OrderId": 0,
"PackageIds": [
"cmag-0c1g77wjljl9hc****"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.