Creates a basic Global Accelerator (GA) instance.
Description
Basic GA instances use high-quality global network bandwidth and the transmission network of Alibaba Cloud to provide users with point-to-point acceleration services. You can use basic GA instances to accelerate content delivery at Layer 3 (IP protocols). For more information, see Overview of standard GA instances.
The CreateBasicAccelerator operation is an asynchronous operation. After you send a request, the system returns the ID of a basic GA instance, but the operation is still being performed in the background. You can call the GetBasicAccelerator or ListBasicAccelerators operation to query the status of a basic GA instance:
- If the basic GA instance is in the init state, it indicates the basic GA instance is being created. In this case, you can perform only query operations.
- If the basic GA instance is in the active state, it indicates that the basic GA instance is created.
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 ensure that it is unique among all requests. The ClientToken value contain only ASCII characters. Note If you do not set this parameter, the system sets ClientToken to the value of RequestId. The value of RequestId of each API request may be different. |
Duration | Integer | No | 1 | The subscription duration of the GA instance.
|
PricingCycle | String | No | Month | The billing cycle of the GA instance. Valid values:
|
BandwidthBillingType | String | No | CDT | The bandwidth billing method. Valid values:
|
AutoPay | Boolean | No | false | Specifies whether to enable automatic payment. Default value: false. Valid values:
|
AutoUseCoupon | String | No | false | Specifies whether to automatically pay bills by using coupons. Default value: false. Valid values:
Note This parameter is required only if AutoPay is set to true. |
PromotionOptionNo | String | No | 50003298014**** | The coupon code. Note This parameter is only available on the international site. |
AutoRenew | Boolean | No | false | Specifies whether to enable auto-renewal for the GA instance. Valid values:
|
AutoRenewDuration | Integer | No | 1 | The auto-renewal duration. Unit: months. Valid values: 1 to 12. Default value: 1. Note This parameter is required only if AutoRenew is set to true. |
ResourceGroupId | String | No | rg-acfmxshhcsn**** | The ID of the resource group to which the basic GA instance belongs. |
ChargeType | String | No | PREPAY | The billing method. Set the value to PREPAY, which specifies the subscription billing method. |
DryRun | Boolean | No | false | Specifies whether to perform a dry run. Valid values:
|
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
&BandwidthBillingType=CDT
&AutoPay=false
&AutoUseCoupon=false
&PromotionOptionNo=50003298014****
&AutoRenew=false
&AutoRenewDuration=1
&ResourceGroupId=rg-acfmxshhcsn****
&ChargeType=PREPAY
&DryRun=false
&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
HttpCode | Error code | Error message | Description |
---|---|---|---|
500 | UnknownError | An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. | The error message returned because an error occurred while the request was being processed. Try again later. |
For a list of error codes, see Service error codes.