Modifies the name of an endpoint that is associated with a basic Global Accelerator (GA) instance.

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 the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateBasicEndpoint

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

RegionId String Yes cn-hangzhou

The ID of the region where the 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 it is unique among different requests. The token can 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 may be different for each API request.
EndpointGroupId String Yes epg-bp1dmlohjjz4kqaun****

The ID of the endpoint group to which the endpoint that you want to modify belongs.

EndpointId String Yes ep-bp14sz7ftcwwjgrdm****

The ID of the endpoint that you want to modify.

Name String Yes ep01

The name of the endpoint.

The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.

Response parameters

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

The ID of the request.

EndpointGroupId String epg-bp1dmlohjjz4kqaun****

The ID of the endpoint group to which the endpoints belong.

EndpointId String ep-bp14sz7ftcwwjgrdm****

The ID of the endpoint.

Name String ep01

The name of the endpoint.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateBasicEndpoint
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&EndpointGroupId=epg-bp1dmlohjjz4kqaun****
&EndpointId=ep-bp14sz7ftcwwjgrdm****
&Name=ep01
&Common request parameters

Sample success responses

XML format

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

<UpdateBasicEndpointResponse>
    <RequestId>6FEA0CF3-D3B9-43E5-A304-D217037876A8</RequestId>
    <EndpointGroupId>epg-bp1dmlohjjz4kqaun****</EndpointGroupId>
    <EndpointId>ep-bp14sz7ftcwwjgrdm****</EndpointId>
    <Name>ep01</Name>
</UpdateBasicEndpointResponse>

JSON format

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

{
  "RequestId" : "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
  "EndpointGroupId" : "epg-bp1dmlohjjz4kqaun****",
  "EndpointId" : "ep-bp14sz7ftcwwjgrdm****",
  "Name" : "ep01"
}

Error codes

HttpCode Error code Error message Description
400 NotExist.Accelerator The accelerated instance does not exist. The error message returned because the GA instance does not exist.

For a list of error codes, see Service error codes.