Domain name for API request: ga2.intl.tencentcloudapi.com.
This API is used to create a global acceleration instance.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateGlobalAccelerator. |
| Version | Yes | String | Common Params. The value used for this API: 2025-01-15. |
| Region | No | String | Common Params. This parameter is not required. |
| Name | Yes | String | Name. Parameter format: starting with a letter or Chinese characters, 2–128 characters in length, supporting letters, digits, Chinese characters, . - _ |
| InstanceChargeType | No | String | Billing mode. PREPAID: prepaid mode, i.e., Monthly Subscription. POSTPAID: postpaid, i.e., pay-as-you-go. Default: POSTPAID. Currently, only pay-as-you-go is supported. |
| Description | No | String | Description. Parameter format: should not exceed 100 characters. |
| CrossBorderType | No | String | Cross-border type; HighQuality: dedicated BGP-IP cross-border; Unicom: China Unicom Direct Connect cross-border. |
| CrossBorderPromiseFlag | No | Boolean | This Flag represents signing the cross-border service commitment. When using cross-border service, this field is required. True: represents signed. |
| Tags.N | No | Array of Tag | Tag information. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID. |
| GlobalAcceleratorId | String | Global acceleration instance ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: ga2.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateGlobalAccelerator
<Common request parameters>
{
"Name": "garendu-test-05",
"InstanceChargeType": "POSTPAID",
"Description": "garendu-test-05"
}
{
"Response": {
"GlobalAcceleratorId": "ga-fkp17vr8",
"RequestId": "02eb3789-7d73-4b09-94de-c2750cfa1b63",
"TaskId": "dfcfbd3b-fe76-434b-8ce3-d6c11a5d4226"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.CreateGlobalAcceleratorFailed | Failed to create a global acceleration instance. Retry your request. If the problem persists, contact Tencent Cloud customer service. |
| InvalidParameterValue | Parameter value error. |
| InvalidParameterValue.InstanceName | Instance name must start with an uppercase/lowercase character or Chinese character, and support digits, periods, hyphens, and underscores. |
| InvalidParameterValue.TooLong | Parameter value %(value)s length cannot be greater than %(max_size)s. |
| MissingParameter | Parameters are missing. |
| UnsupportedOperation.AccountFrozen | Account frozen. The current operation is not supported. |
| UnsupportedOperation.BillingFailed | Sorry, your operation cannot be completed temporarily. Please retry later or contact customer service. |
| UnsupportedOperation.CrossBorderPromiseNotSigned | The cross-border commitment letter is not signed. The current operation is not supported. |
| UnsupportedOperation.CurrentAccountNotAllowed | The current account does not support this operation. |
| UnsupportedOperation.EnableCrossBorder | Cross-border type settings are not supported for the current user. |
| UnsupportedOperation.InsufficientFunds | The account balance is insufficient. |
| UnsupportedOperation.UnableCrossBorder | Currently, cross-border acceleration regions or terminal node groups cannot be created for global acceleration instances. |
文档反馈