Calls the UpdateVpcEndpointServiceAttribute operation to modify the attributes of an endpoint service.
Operation description
Before you modify the attributes of an endpoint service, make sure that the endpoint service is in the Active state. You can call the GetVpcEndpointServiceAttribute operation to query the endpoint service status.
The UpdateVpcEndpointServiceAttribute operation does not support concurrent modification of endpoint service attributes within the same Alibaba Cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointServiceAttribute |
update |
*VpcEndpointService
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint service. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The ClientToken parameter supports only ASCII characters. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
|
false |
| ServiceId |
string |
Yes |
The ID of the endpoint service. |
epsrv-hp3vpx8yqxblby3i**** |
| ServiceDescription |
string |
No |
The description of the endpoint service. |
This is my EndpointService. |
| AutoAcceptEnabled |
boolean |
No |
Specifies whether to automatically accept endpoint connections. Valid values:
|
false |
| ConnectBandwidth |
integer |
No |
The default bandwidth limit. Default value: 3072. Unit: Mbit/s. Valid values: 100 to 10240. Note
Settings for the default bandwidth limit are supported when the service resource is a Classic Load Balancer (CLB) instance or an Application Load Balancer (ALB) instance. When the service resource is a Network Load Balancer (NLB) instance, the connection bandwidth cannot be configured. |
3072 |
| ZoneAffinityEnabled |
boolean |
No |
Specifies whether to resolve the domain name of the endpoint that is connected to the endpoint service to the nearest access point. Valid values:
|
true |
| RegionId |
string |
Yes |
The region ID of the endpoint service. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
ServiceSupportIPv6
deprecated
|
boolean |
No |
Specifies whether the endpoint service supports IPv6. Valid values:
|
false |
| AddressIpVersion |
string |
No |
The protocol version. Valid values:
Note
Currently, only endpoint services whose backend resource type is NLB or GWLB support setting the IP address protocol to DualStack. |
IPv4 |
| AddSupportedRegionSet |
array |
No |
The list of remote regions to add for the endpoint service. |
|
|
string |
No |
The ID of the remote region to add for the endpoint service. |
cn-huhehaote |
|
| DeleteSupportedRegionSet |
array |
No |
The list of remote regions to remove from the endpoint service. |
|
|
string |
No |
The ID of the remote region to remove from the endpoint service. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
8D8992C1-6712-423C-BAC5-E5E817484C6B |
Examples
Success response
JSON format
{
"RequestId": "8D8992C1-6712-423C-BAC5-E5E817484C6B"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | The specified Service does not exist. |
| 400 | EndpointServiceLocked | The specified Service is locked. | The specified Service is locked. |
| 400 | EndpointServiceOperationDenied | The specified operation of endpoint service is not allowed. | The specified operation of endpoint service is not allowed. |
| 400 | IllegalParamFormat.%s | The param format of %s is illegal. | The parameter format of %s is illegal. |
| 400 | OperationDenied.PrivateServiceDomainBusinessStatus | The operation is not allowed because of PrivateServiceDomainBusinessStatus. | |
| 400 | MissingParam.%s | The param of %s is missing. | The parameter %s is missing. |
| 400 | ServiceResourceNotSupportIpv6 | The resource is not support ipv6. | The endpoint service does not support IPv6. |
| 400 | EndpointServiceDowngradeNotAllowed | The EndpointService is not allowed for downgrade. | The endpoint service is not allowed to be downgraded. |
| 400 | DependencyViolation.PrivateDnsName | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | OperationDenied.PrivateDomainNotSupport | The operation is not allowed because of PrivateDomainNotSupport. | |
| 400 | OperationDenied.PrivateDomainStatusNotSupport | The operation is not allowed because of %s. | |
| 400 | Conflict.ServiceName | The ServiceName %s is conflict. | |
| 400 | InvalidParam.PrivateDnsName | The parameter of PrivateDnsName is illegal, which needs to end with aliyun.com, aliyun-inc.com, or aliyuncs.com. | |
| 400 | OperationDenied.ResourceTypeNotSupportDualStack | The specified resource type does not support dualstack. | The specified resource type does not support dualstack. |
| 400 | OperationDenied.ServiceResourceIpVersionMismatch | The endpoint service and service resource AddressIpVersion do not match. | The endpoint service and service resource AddressIpVersion do not match. |
| 400 | EndpointServiceConnectionDependence | There are connections between the endpoint service and the dualstack endpoint, the endpoint service address ip version not support switching from dualstack to ipv4. | There are connections between the endpoint service and the dualstack endpoint, the endpoint service address ip version not support switching from dualstack to ipv4. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.