The UpdateVpcEndpointServiceAttribute operation modifies 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 ID of the region where the endpoint service is deployed. Call the DescribeRegions operation to obtain the region ID. |
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. ClientToken can contain only ASCII characters. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. 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 maximum bandwidth of the connection. Default value: 3072. Unit: Mbit/s. Valid values: 100 to 10240. Note
You can set the default maximum bandwidth only when the service resource is a Classic Load Balancer (CLB) or an Application Load Balancer (ALB). You cannot set the connection bandwidth when the service resource is a Network Load Balancer (NLB). |
3072 |
| ZoneAffinityEnabled |
boolean |
No |
Specifies whether to resolve the domain name of the endpoint service to the nearest endpoint. Valid values:
|
true |
| RegionId |
string |
Yes |
The ID of the region where the endpoint service is deployed. 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 that use an NLB or a Gateway Load Balancer (GWLB) as the service resource support the DualStack IP version. Valid values:
|
IPv4 |
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.