Call the UpdateVpcEndpointAttribute operation to update gateway endpoint attributes.
Operation description
The UpdateVpcEndpointAttribute operation does not support concurrent updates to endpoint attributes under the same Alibaba Cloud account (primary account).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointAttribute |
update |
*VpcEndpoint
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the endpoint to update. You can get the region ID by calling the DescribeRegions operation. |
eu-west-1 |
| ClientToken |
string |
No |
A client token used to ensure request idempotence. Generate a unique value from your client for this parameter to guarantee uniqueness across different requests. ClientToken supports only ASCII characters. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| DryRun |
boolean |
No |
Specifies whether to perform only a pre-check for this request. Valid values:
|
true |
| EndpointId |
string |
Yes |
The ID of the endpoint to update. |
ep-hp33b2e43fays7s8**** |
| EndpointName |
string |
No |
The name of the endpoint. The name must be 2 to 128 characters in length and start with a letter or Chinese character. It can contain digits, hyphens (-), and underscores (_). |
test |
| EndpointDescription |
string |
No |
The description of the endpoint. The description must be 2 to 256 characters in length and cannot start with |
This is my Endpoint. |
| RegionId |
string |
Yes |
The region ID of the endpoint to update. You can get the region ID by calling the DescribeRegions operation. |
eu-west-1 |
| PolicyDocument |
string |
No |
An access policy for RAM. For more information about policy syntax, see Basic elements of access policies. |
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": [ "oss:List*", "oss:PutObject", "oss:GetObject" ], "Resource": [ "acs:oss:oss-*:*:pvl-policy-test/policy-test.txt" ], "Principal": { "RAM": [ "acs:ram::14199xxxxxx:*" ] } } ] } |
| AddressIpVersion |
string |
No |
The IP version. Valid values:
Note
To enable dual-stack for an endpoint, both the connected endpoint service and the VPC where the endpoint resides must support dual-stack. Valid values:
|
IPv4 |
| ZoneAffinityEnabled |
boolean |
No |
Specifies whether to enable proximity-based DNS resolution for the endpoint domain name. Valid values:
|
false |
| ResetPolicy |
boolean |
No |
Resets the policy to the default policy. |
true |
| CrossRegionBandwidth |
integer |
No |
The cross-region bandwidth value. This parameter applies only when the endpoint and endpoint service are in different regions. Unit: Mbps. Valid values:
Note
If you specify this parameter, ensure that you are working with a cross-region endpoint. |
1000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Examples
Success response
JSON format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationDenied.EndpointProtected | The operation is not allowed because of EndpointProtected. | Managed protection is enabled for the endpoint. Operation is not allowed. |
| 400 | EndpointNotFound | The specified Endpoint does not exist. | The specified Endpoint does not exist. |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | The specified operation of endpoint is not allowed. |
| 400 | EndpointLocked | The specified Endpoint is locked. | The specified Endpoint is locked. |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | The endpoint is being connected. |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | The specified Service is already deleted. |
| 400 | EndpointProtected | The specified Endpoint is protected. | |
| 400 | OperationDenied.EndpointPolicyNotSupport | The operation is not allowed because of EndpointPolicyNotSupport. | |
| 400 | DependencyViolation.PrivateDnsName | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | OperationDenied.PrivateDomainStatusNotSupport | The operation is not allowed because of %s. | |
| 400 | OperationDenied.PrivateDomainNotSupport | The operation is not allowed because of PrivateDomainNotSupport. | |
| 400 | OperationDenied.NotSupportDualStackSwitchToIpv4 | AddressIpVersion does not support switching from DualStack to IPv4. | AddressIpVersion does not support switching from DualStack to IPv4. |
| 400 | OperationDenied.EndpointServiceNotSupportDualstack | The specified endpoint service does not support dualstack. | The specified endpoint service does not support dualstack. |
| 400 | OperationDenied.VSwitchNotSupportDualstack | The specified VSwitch does not support dualstack. | The specified VSwitch does not support dualstack. |
| 400 | IllegalParam.AddressIpVersion | The specified parameter AddressIpVersion is invalid. | The specified parameter AddressIpVersion does not meet the requirements. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.