Associates a Log Service Logstore with an endpoint group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates a sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AttachLogStoreToEndpointGroup

The operation that you want to perform. Set the value to AttachLogStoreToEndpointGroup.

RegionId String Yes cn-hangzhou

The ID of the region where the Global Accelerator (GA) instance is deployed. Set the value to cn-hangzhou.

SlsProjectName String Yes pn-01

The name of the Log Service project.

SlsLogStoreName String Yes lsn-01

The name of the Logstore.

AcceleratorId String Yes ga-bp1odcab8tmno0hdq****

The ID of the GA instance.

ListenerId String Yes lsr-bp1bpn0kn908w4nbw****

The ID of the listener.

SlsRegionId String Yes cn-hangzhou

The region ID of the Log Service project.

ClientToken String No 123e4567-e89b-12d3-a456-426655440000

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 different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

EndpointGroupIds.N String Yes ['epg-bp1dmlohjjz4kqaun****','epg-bp1v1u72cx35ogofe****', ...]

The IDs of endpoint groups.

Response parameters

Parameter Type Example Description
RequestId String 6FEA0CF3-D3B9-43E5-A304-D217037876A8

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=AttachLogStoreToEndpointGroup
&RegionId=cn-hangzhou
&SlsProjectName=pn-01
&SlsLogStoreName=lsn-01
&AcceleratorId=ga-bp1odcab8tmno0hdq****
&ListenerId=lsr-bp1bpn0kn908w4nbw****
&SlsRegionId=cn-hangzhou
&EndpointGroupIds=["'epg-bp1dmlohjjz4kqaun****','epg-bp1v1u72cx35ogofe****', ..."]
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<AttachLogStoreToEndpointGroupResponse>
    <RequestId>6FEA0CF3-D3B9-43E5-A304-D217037876A8</RequestId>
</AttachLogStoreToEndpointGroupResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "6FEA0CF3-D3B9-43E5-A304-D217037876A8"
}

Error codes

HttpCode Error code Error message Description
400 StateError.Accelerator The state of the accelerated instance is invalid. The error message returned because the specified GA instance is invalid.
400 NotExist.Accelerator The accelerated instance does not exist. The error message returned because the specified GA instance does not exist.

For a list of error codes, visit the API Error Center.