Creates a basic Global Accelerator (GA) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateBasicAccelerator |
The operation that you want to perform. Set the value to CreateBasicAccelerator. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where you want to create the GA instance. Set the value to cn-hangzhou. |
ClientToken | String | No | 123e4567**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
|
Duration | Integer | Yes | 1 |
The subscription duration.
|
PricingCycle | String | Yes | Month |
The billing cycle of the GA instance. Valid values:
|
AutoPay | Boolean | No | false |
Specifies whether to enable automatic payment. Valid values:
|
AutoUseCoupon | String | No | false |
Specifies whether to automatically pay bills by using coupons. Valid values:
Note This parameter is required only if AutoPay is set to true.
|
AutoRenew | Boolean | No | false |
Specifies whether to enable auto-renewal.
|
AutoRenewDuration | Integer | No | 1 |
The auto-renewal period. Unit: months Valid values: 1 to 12. Default value: 1. Note This parameter is required only if AutoRenew is set to true.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F591955F-5CB5-4CCE-A75D-17CF2085CE22 |
The ID of the request. |
OrderId | String | 2082574365 |
The ID of the order. |
AcceleratorId | String | ga-bp17frjjh0udz4qz**** |
The ID of the basic GA instance. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateBasicAccelerator
&RegionId=cn-hangzhou
&ClientToken=123e4567****
&Duration=1
&PricingCycle=Month
&AutoPay=false
&AutoUseCoupon=false
&AutoRenew=false
&AutoRenewDuration=1
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateBasicAcceleratorResponse>
<RequestId>F591955F-5CB5-4CCE-A75D-17CF2085CE22</RequestId>
<OrderId>2082574365</OrderId>
<AcceleratorId>ga-bp17frjjh0udz4qz****</AcceleratorId>
</CreateBasicAcceleratorResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "F591955F-5CB5-4CCE-A75D-17CF2085CE22",
"OrderId" : "2082574365",
"AcceleratorId" : "ga-bp17frjjh0udz4qz****"
}
Error codes
For a list of error codes, visit the API Error Center.