最近更新时间:2024.04.22 16:36:17
首次发布时间:2023.03.17 21:09:37
调用ModifyVpcEndpointAttributes接口,修改指定终端节点的信息。
调用该接口修改终端节点时,终端节点实例的状态变化为:Available > Pending > Available。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyVpcEndpointAttributes | 要执行的操作,取值为ModifyVpcEndpointAttributes。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为2020-04-01。 |
EndpointId | String | 是 | ep-273yuq6q7bgn47fap8squ**** | 终端节点的ID。您可以调用DescribeVpcEndpoints接口获取终端节点的ID。 |
EndpointName | String | 否 | endpoint-02 | 终端节点的名称。
|
PrivateDNSEnabled | String | 否 | false | 是否启用私有DNS名称。
说明
|
Description | String | 否 | This endpoint is for test. | 终端节点的描述信息。
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28D**** | 请求ID。 |
GET /?Action=ModifyVpcEndpointAttributes&Version=2020-04-01&EndpointId=ep-273yuq6q7bgn47fap8squ****&EndpointName=endpoint-02 HTTP/1.1 Host: open.volcengineapi.com Service: privatelink Region: cn-guangzhou
{ "ResponseMetadata": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****", "Action": "ModifyVpcEndpointAttributes", "Version": "2020-04-01", "Service": "privatelink", "Region": "cn-guangzhou" }, "Result": { "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'. | 该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX。 说明 其中,XXX表示缺少的参数名称。 |
400 | InvalidEndpoint.InvalidStatus | The specified endpoint is not in the correct status for the request. | 指定的终端节点所处的状态无法响应该请求。 |
400 | InvalidName.Malformed | The specified Name is malformed. | 指定的参数Name格式不合法。 |
400 | InvalidDescription.Malformed | The specified Description is malformed. | 指定的参数Description格式不合法。 |
400 | InvalidEndpointService.InvalidLock | The operation is refused by the endpoint service. | 终端节点服务无法支持该操作。 |
400 | InvalidPrivateDNS.UnsupportedOperation | The request on the specified PrivateDNS is denied due to the PrivateDNS is disabled. | 因为未开启 PrivateDNS 功能,该请求被拒绝。 |
403 | Forbidden | You are not authorized to perform operations on the specified service. | 无权限对指定服务进行操作。 |
404 | InvalidEndpointService.NotFound | The specified EndpointService does not exist. | 指定的终端节点服务不存在。 |
404 | InvalidEndpoint.NotFound | The specified endpoint does not exist. | 指定的终端节点不存在。 |
409 | InvalidVpcPrivateDNSName.Conflict | The specified PrivateDNSName in single vpc and single endpoint service already exists. | 指定的私网 DNS 名称在同一个 VPC 和同一个终端节点服务下已存在。 |