Modifies an endpoint service.


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 UpdateVpcEndpointServiceAttribute

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

RegionId String Yes cn-hangzhou

The region ID of the endpoint service.

You can call the DescribeRegions operation to query the most recent region list.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe637760

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 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.
DryRun Boolean No false

Specifies whether to precheck the request. Valid values:

true: only checks the API request. If you select this option, the endpoint service is not modified. The system prechecks the required parameters, request syntax, and limits. If the request fails to pass the precheck, an error message is returned. If the request passes the precheck, the error code DryRunOperation is returned.

false (default): sends the request. If the request passes the precheck, a 2xx HTTP status code is returned and the endpoint service is modified.

ServiceId String Yes epsrv-hp3vpx8yqxblby3i****

The ID of the endpoint service.

ServiceDescription String No This is my EndpointService.

The description of the endpoint service.

AutoAcceptEnabled Boolean No false

Specifies whether to automatically accept endpoint connection requests. Valid values:

  • true: yes
  • false: no
ConnectBandwidth Integer No 200

The default maximum bandwidth. Unit: Mbit/s. Valid values: 100 to 1024.

ZoneAffinityEnabled Boolean No true

Indicates whether to resolve domain names to the IP addresses in the nearest zone.

  • true: yes
  • false (default): no

Response parameters

Parameter Type Example Description
RequestId String 8D8992C1-6712-423C-BAC5-E5E817484C6B

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "8D8992C1-6712-423C-BAC5-E5E817484C6B"

Error codes

HttpCode Error code Error message Description
400 EndpointServiceNotFound The specified Service does not exist. The error message returned because the specified endpoint service does not exist.
400 EndpointServiceLocked The specified Service is locked. The error message returned because the endpoint service is locked.
400 EndpointServiceOperationDenied The specified operation of endpoint service is not allowed. The error message returned because the operation is not allowed when the endpoint service is being processed.
400 IllegalParamFormat.%s The param format of %s is illegal. The error message returned because the specified format %s is invalid. The error message returned because the specified values do not meet the requirements. Check the usage notes and change the values.
400 OperationDenied.PrivateServiceDomainBusinessStatus The operation is not allowed because of PrivateServiceDomainBusinessStatus. The error message returned because custom domain names are disabled.
400 MissingParam.%s The param of %s is missing. The error message returned because the %s parameter is not set.

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