The UpdateVpcEndpointAttribute operation modifies the properties of an endpoint.
Operation description
The UpdateVpcEndpointAttribute operation does not support concurrent calls to modify the properties of endpoints within the same Alibaba Cloud 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 ID of the region where the endpoint is deployed. Call the DescribeRegions operation to obtain the region ID. | eu-west-1 |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. Generate a value for this parameter on your client to make sure that the value is unique among different requests. 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 name of the endpoint. The name must be 2 to 128 characters in length, start with a letter or a Chinese character, and 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 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 how to define a policy, see Basic elements of a RAM 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 protocol version. Valid values:
Note To use the dual-stack feature, the associated endpoint service and the VPC where the endpoint is deployed must also support the dual-stack feature. Valid values:
| IPv4 |
ZoneAffinityEnabled | boolean | No | ||
ResetPolicy | boolean | No |
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.