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

ModifyVpcEndpointServiceAttributes

最近更新时间2024.05.17 08:33:16

首次发布时间2023.03.17 21:09:36

调用ModifyVpcEndpointServiceAttributes接口,修改指定终端节点服务的信息。

调用说明

终端节点服务已启用私有DNS名称且已关联启用了私有DNS名称的终端节点时,不支持修改参数PrivateDNSEnabledPrivateDNSTypePrivateDNSName

调试

请求参数

名称类型是否必选示例值描述
ActionStringModifyVpcEndpointServiceAttributes要执行的操作,取值为ModifyVpcEndpointServiceAttributes。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
ServiceIdStringepsvc-2fe630gurkl37k5gfuy33****终端节点服务的ID。您可以调用DescribeVpcEndpointServices接口获取终端节点服务的ID。

AutoAcceptEnabled

Boolean

false

是否自动接受终端节点连接。

  • true:终端节点服务自动接受终端节点连接。
  • false:终端节点服务不会自动接受终端节点连接,需要调用EnableVpcEndpointConnection接口手动接受。

PrivateDNSEnabled

Boolean

false

是否为终端节点服务启用私有DNS名称。

  • false:不启用。
  • true:启用。

说明

自定义域名功能正在邀测中,如需使用,请联系客户经理。

PrivateDNSType

String

public

私有DNS名称的域名类型。

  • public:公网。
  • private:私网。

说明

  • 该参数正在邀测中,如需使用,请联系客户经理。
  • 参数PrivateDNSEnabled取值为“true”时,该参数生效。

PrivateDNSName

String

www.example.com

私有DNS名称,即通过私网连接访问服务时希望使用的自定义域名,可以是公网域名,也可以是私网域名。

  • 公网域名不支持传入已配置全局解析的内网域名,以及私网连接使用的域名(包括终端节点服务域名和终端节点域名)。
  • 私网域名不支持传入私网连接使用的域名(包括终端节点服务域名和终端节点域名)。请保证传入的私网域名唯一,否则可能因域名冲突导致无法使用。

说明

  • 参数PrivateDNSEnabled取值为“true”时,必须传入该参数。
  • 若传入的域名为泛域名 *.www.example.com,则该泛域名及其根域名 www.example.com 均支持解析。
  • 未开通自定义私网域名功能时,该参数只能传入公网域名。

Description

String

endpoint service

终端节点服务的描述信息。

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

返回数据

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

请求示例

GET /?Action=ModifyVpcEndpointServiceAttributes&Version=2020-04-01&ServiceId=epsvc-2fe630gurkl37k5gfuy33**** HTTP/1.1
Host: open.volcengineapi.com
Service: privatelink
Region: cn-guangzhou

返回示例

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

400InvalidDescription.MalformedThe specified Description is malformed.指定的Description参数格式不合法。
400InvalidEndpointService.InvalidStatusThe specified EndpointService is not in the correct status for the request.指定的终端节点服务所处的状态无法响应该请求。
400ErrInterfaceNotSupportedResourceTypeThe Interface does not support the resource type.终端节点服务接口不支持操作该服务资源类型。
400InvalidPrivateDNSEnable.InUseThe specified PrivateDNS is being occupied by Endpoint of the EndpointService.指定的私有 DNS 正在被终端节点服务下的终端节点占用。
400InvalidPrivateDNSEnabled.PrivateDNSNameMismatchThe specified PrivateDNSEnabled and PrivateDNSName are mismatched.指定的参数私有DNS是否开启与私有DNS名称无法匹配。
400InvalidPrivateDNSName.MalformedThe specified PrivateDNSName is malformed.指定的 PrivateDNSName 参数格式不合法。
400InvalidEndpointService.InvalidLockThe operation is refused by the endpoint service.终端节点服务无法支持该操作。
400InvalidPrivateDNSEnabled.PrivateDNSTypeMismatchThe specified PrivateDNSEnabled and PrivateDNSType are mismatched.指定的参数 私有DNS是否启用 与 私有DNS类型 无法匹配。
400InvalidPrivateDNSType.MalformedThe specified PrivateDNSType is malformed.指定的 PrivateDNSType 参数格式不合法。
403ForbiddenYou are not authorized to perform operations on the specified service.无权限对指定服务进行操作。
404InvalidEndpointService.NotFoundThe specified EndpointService does not exist.指定的终端节点服务不存在。