You can call the UpdateVpcEndpointAttribute operation to modify the properties of an endpoint.
Operation description
The UpdateVpcEndpointAttribute operation does not support concurrent requests from the same Alibaba Cloud account to modify the properties of an endpoint.
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 ID of the region where the endpoint is deployed. Call the DescribeRegions operation to obtain the region ID. |
eu-west-1 |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. Generate a client-side value that is unique to each request. ClientToken can contain only ASCII characters. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
true |
| EndpointId |
string |
Yes |
The ID of the endpoint that you want to modify. |
ep-hp33b2e43fays7s8**** |
| EndpointName |
string |
No |
The endpoint name. The name must be 2 to 128 characters long. It must start with a letter or a Chinese character and can contain digits, hyphens (-), and underscores (_). |
test |
| EndpointDescription |
string |
No |
The endpoint description. The description must be 2 to 256 characters long and cannot start with |
This is my Endpoint. |
| RegionId |
string |
Yes |
The ID of the region where the endpoint is deployed. Call the DescribeRegions operation to obtain the region ID. |
eu-west-1 |
| PolicyDocument |
string |
No |
The RAM access policy. For more information about policy definitions, see Basic elements of an access policy. |
{ "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 use the dual-stack feature, the endpoint service and the VPC that contains the endpoint must also support dual-stack. Valid values:
|
IPv4 |
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.