Modifies the attributes of an endpoint.
Operation description
You cannot repeatedly call the UpdateVpcEndpointAttribute operation to modify the attributes of an endpoint that belongs to an Alibaba Cloud account within a specified period of time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
privatelink:UpdateVpcEndpointAttribute | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the endpoint whose attributes you want to modify. You can call the DescribeRegions operation to query the most recent region list. | eu-west-1 |
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. The token can contain only ASCII characters. | 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
DryRun | boolean | No | Specifies whether to perform only a dry run, without performing the actual request. Valid values:
| true |
EndpointId | string | Yes | The endpoint ID whose attributes you want to modify. | ep-hp33b2e43fays7s8**** |
EndpointName | string | No | The name of the endpoint. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. | test |
EndpointDescription | string | No | The description of the endpoint. The description must be 2 to 256 characters in length. It cannot start with | This is my Endpoint. |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-18 | The Error code has changed | View Change Details |
2024-09-12 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-05-10 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-09-26 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-09-19 | The Error code has changed | View Change Details |
2023-09-05 | The Error code has changed. The request parameters of the API has changed | View Change Details |