Creates an endpoint group for a specified basic Global Accelerator (GA) instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateBasicEndpointGroup |
The operation that you want to perform. Set the value to CreateBasicEndpointGroup. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the basic GA instance is deployed. Set the value to cn-hangzhou. |
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 make sure that the value 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.
|
AcceleratorId | String | Yes | ga-bp17frjjh0udz4qz**** |
The ID of the basic GA instance. |
EndpointGroupRegion | String | Yes | cn-shanghai |
The ID of the region to which the endpoint group of the basic GA instance belongs. You can call the DescribeRegions operation to query the most recent region list. |
Name | String | No | group1 |
The name of the endpoint group that is associated with the basic GA instance. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. |
Description | String | No | BasicEndpointGroup |
Detailed information about the endpoint group that is associated with the basic GA instance. |
EndpointType | String | Yes | ENI |
The type of the endpoint. Valid values:
|
EndpointAddress | String | Yes | eni-bp1a05txelswuj8g**** |
The address of the endpoint. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EndpointGroupId | String | epg-bp1dmlohjjz4kqaun**** |
The ID of the endpoint group that is associated with the basic GA instance. |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateBasicEndpointGroup
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&AcceleratorId=ga-bp17frjjh0udz4qz****
&EndpointGroupRegion=cn-shanghai
&Name=group1
&Description=BasicEndpointGroup
&EndpointType=ENI
&EndpointAddress=eni-bp1a05txelswuj8g****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateBasicEndpointGroupResponse>
<EndpointGroupId>epg-bp1dmlohjjz4kqaun****</EndpointGroupId>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</CreateBasicEndpointGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"EndpointGroupId" : "epg-bp1dmlohjjz4kqaun****",
"RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | NotExist.Accelerator | The accelerated instance does not exist. | The error message returned because the specified GA instance does not exist. |
400 | StateError.Accelerator | The state of the accelerated instance is invalid. | The error message returned because the specified GA instance is in an invalid state. |
400 | NotExist.BusinessRegion | The business region does not exist. | The error message returned because the specified region does not exist. |
400 | NotExist.BasicBandwidthPackage | You must specify the basic bandwidth package. | The error message returned because no basic bandwidth plan is specified. |
400 | Exist.EndpointGroup | The endpoint group already exists. | The error message returned because the specified endpoint group already exists. |
For a list of error codes, visit the API Error Center.