You need to enable JavaScript to run this app.
导航

ModifyVpcGatewayEndpointAttributes

最近更新时间2024.04.22 16:36:18

首次发布时间2023.07.07 09:56:29

调用ModifyVpcGatewayEndpointAttributes接口,修改指定网关终端节点的信息。

调试

请求参数

以下可选参数不填时默认不修改,保持原有配置不变。

名称类型是否必选示例值描述
ActionStringModifyVpcGatewayEndpointAttributes要执行的操作,取值为ModifyVpcGatewayEndpointAttributes。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
EndpointIdStringgwep-273yuq6q7bgn47fap8squ****网关终端节点的ID。您可以调用DescribeVpcGatewayEndpoints接口获取网关终端节点的ID。

EndpointName

String

endpoint-02

网关终端节点的名称。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。
  • 长度限制为1 ~ 128个字符。
  • 不更改该参数取值时,保持原有配置不变。

Description

String

This endpoint is for test.

网关终端节点的描述信息。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。
  • 长度限制为0 ~ 255个字符。
  • 不更改该参数取值时,保持原有配置不变。
VpcPolicyString{ "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": "*", "Resource": "*" } ] }网关终端节点的访问策略。访问策略中各字段的详细说明请参见存储桶策略参数说明

返回数据

名称类型示例值描述
RequestIdString0ED8D006-F706-4D23-88ED-E11ED28D****请求ID。

请求示例

GET /?Action=ModifyVpcGatewayEndpointAttributes&Version=2020-04-01&EndpointId=gwep-273yuq6q7bgn47fap8squ****&EndpointName=endpoint-02 HTTP/1.1
Host: open.volcengineapi.com
Service: privatelink
Region: cn-guangzhou

返回示例

{
    "ResponseMetadata": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****",
        "Action": "ModifyVpcGatewayEndpointAttributes",
        "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表示缺少的参数名称。

400InvalidGatewayEndpoint.InvalidStatusThe specified GatewayEndpoint is not in the correct status for the request.指定的网关类型终端节点所处的状态无法响应该请求。
400InvalidName.MalformedThe specified Name is malformed.指定的Name参数格式不合法。
400InvalidDescription.MalformedThe specified Description is malformed.指定的Description参数格式不合法。
400InvalidPolicy.Action.MalformedThe specified Policy.Action is malformed.指定的 Policy.Action 参数格式不合法。
400InvalidPolicy.Effect.MalformedThe specified Policy.Effect is malformed.指定的 Policy.Effect 参数格式不合法。
400InvalidPolicy.Principal.MalformedThe specified Policy.Principal is malformed.指定的 Policy.Principal 参数格式不合法。
400InvalidPolicy.Resource.MalformedThe specified Policy.Resource is malformed.指定的 Policy.Resource 参数格式不合法。
400InvalidPolicy.Statement.MalformedThe specified Policy.Statement is malformed.指定的 Policy.Statement 参数格式不合法。
404InvalidGatewayEp.NotFoundThe specified GatewayEndpoint does not exist.指定的网关终端节点不存在。