Modifies the attributes of an endpoint.
Operation description
The UpdateVpcEndpointAttribute operation does not support concurrent requests to modify the attributes of multiple endpoints in 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 region ID of the endpoint. To get a region ID, call the DescribeRegions operation. | eu-west-1 |
ClientToken | string | No | A client token to ensure the idempotence of the request. Make sure that the client token is unique among different requests. The ClientToken parameter 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. | ep-hp33b2e43fays7s8**** |
EndpointName | string | No | The name of the endpoint. The name must be 2 to 128 characters long, start with a letter, and can contain digits, hyphens (-), and underscores (_). | test |
EndpointDescription | string | No | The description of the endpoint. The description must be 2 to 256 characters long and cannot start with | This is my Endpoint. |
RegionId | string | Yes | The region ID of the endpoint to modify. Call the DescribeRegions operation to get the region ID. | eu-west-1 |
PolicyDocument | string | No | The RAM access policy. For more information, 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 enable dual-stack for an endpoint, the endpoint service to which the endpoint is connected and the VPC where the endpoint is deployed must also support dual-stack. Valid values:
| IPv4 |
ZoneAffinityEnabled | 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.