UpdateVpcEndpointServiceAttribute
Call the UpdateVpcEndpointServiceAttribute operation to modify the attributes of an endpoint service.
Operation description
Before modifying the attributes of an endpoint service, ensure 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 modifications to the attributes of an endpoint service under the same Alibaba Cloud account (primary 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. Call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. Generate a unique value from your client for this parameter to ensure it differs across requests. ClientToken supports only ASCII characters. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run of the 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 peak bandwidth for connections. Default value: 3072. Unit: Mbps. Valid values: 100 to 10240. Note
When the service resource is a Classic Load Balancer (CLB) or Application Load Balancer (ALB), you can set the default peak bandwidth. When the service resource is a Network Load Balancer (NLB), you cannot set the connection bandwidth. |
3072 |
| ZoneAffinityEnabled |
boolean |
No |
Specifies whether to enable zone affinity for DNS resolution of the endpoint service domain name. Valid values:
|
true |
| RegionId |
string |
Yes |
The region ID of the endpoint service. Call the DescribeRegions operation to obtain the region ID. |
cn-hangzhou |
ServiceSupportIPv6
deprecated
|
boolean |
No |
Specifies whether the endpoint service supports IPv6. Valid values:
|
false |
| AddressIpVersion |
string |
No |
The IP version. Valid values:
Note
Only endpoint services whose backend resource types are NLB or GWLB support setting the IP address protocol to DualStack. Valid values:
|
IPv4 |
| AddSupportedRegionSet |
array |
No |
The list of remote regions to add for the endpoint service. |
|
|
string |
No |
The ID of a 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 a 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.