Domain name for API request: ga2.intl.tencentcloudapi.com.
Create a GA access log
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: CreateGlobalAcceleratorAccessLog. |
| Version | Yes | String | Common Params. The value used for this API: 2025-01-15. |
| Region | No | String | Common Params. This parameter is not required. |
| GlobalAcceleratorId | Yes | String | Unique Id of the sample GA |
| ListenerId | Yes | String | Listener Id |
| EndpointGroupId | Yes | String | Terminal node group Id |
| CloudRegion | Yes | String | Logset region |
| CloudLogId | Yes | String | Log topic Id |
| CloudLogSetId | Yes | String | Log Set Id |
| FieldKeys.N | No | Array of String | Specify data collection fields Enumeration values:
|
| FlowLogDescription | No | String | Log description |
| Parameter Name | Type | Description |
|---|---|---|
| LogPushTaskId | String | Log Task Unique 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: CreateGlobalAcceleratorAccessLog
<Common request parameters>
{
"GlobalAcceleratorId": "ga-8sreohed",
"ListenerId": "lsr-4afw0c06",
"EndpointGroupId": "epg-du8oqpy5",
"CloudRegion": "ap-guangzhou",
"CloudLogId": "61f7ee4c-4704-4669-82fe-2c191f8f200b",
"CloudLogSetId": "81217ea2-f578-451a-946e-f31e2131a9ac",
"FieldKeys": [
"request_method"
],
"FlowLogDescription": "ga_log_test_http"
}
{
"Response": {
"LogPushTaskId": "galog-gv9duwet",
"RequestId": "383fea40-a621-4bb6-8695-ad35e26515c2"
}
}
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 |
|---|---|
| InvalidParameter.InputRepeat | The input parameter %(key)s in the request has duplicate values. |
| InvalidParameterValue.InstanceMismatch | The instance object %(value)s has a mismatched relationship. |
| InvalidParameterValue.LogsetNotExist | Logset topic %(value)s does not exist. |
| InvalidParameterValue.Range | The value %(value)s of the parameter %(parameter)s must be within the range %(value_range)s. |
| InvalidParameterValue.VpgHaGroupNotFound | |
| UnsupportedOperation.ExistAccessLog | An access log exists. The current operation is not supported. |
| UnsupportedOperation.InstanceNotRunning | The instance is not in the running state. The current operation is not supported. |
| UnsupportedOperation.NotAuthorization | Not supported. Please grant the permission first to enable the log task. |
文档反馈