You need to enable JavaScript to run this app.
文档中心
中转路由器

中转路由器

复制全文
下载 pdf
VPN类型网络实例连接
ModifyTransitRouterVpnAttachmentAttributes - 修改VPN类型网络实例连接
复制全文
下载 pdf
ModifyTransitRouterVpnAttachmentAttributes - 修改VPN类型网络实例连接
调用ModifyTransitRouterVpnAttachmentAttributes接口,修改指定VPN类型网络实例连接的信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyTransitRouterVpnAttachmentAttributes​
接口名称。当前 API 的名称为ModifyTransitRouterVpnAttachmentAttributes。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为2020-04-01。​
​
TransitRouterAttachmentId String 必选 示例值:tr-attach-a*******​
网络实例连接的ID。您可以调用DescribeTransitRouterVpnAttachments接口获取VPN类型网络实例连接的ID。​
​
Description String 可选 示例值:This attachment is used for test.​
网络实例连接的描述信息。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
  • 不更改该参数取值时,保持原有配置不变。​
​
TransitRouterAttachmentName String 可选 示例值:attachment-02​
网络实例连接的名称。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。​
  • 不更改该参数取值时,保持原有配置不变。​
​
HealthCheckRevokeRouteEnabled Boolean 可选 示例值:true​
是否开启健康检查收敛路由功能。​
  • true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。​
  • false:否。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=ModifyTransitRouterVpnAttachmentAttributes&Version=2020-04-01&TransitRouterAttachmentId=tr-attach-a******* HTTP/1.1​
Host: transitrouter.cn-beijing.volcengineapi.com​
X-Date: 20250804T034335Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-beijing/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250804114338220223058010133478",​
"Action": "ModifyTransitRouterVpnAttachmentAttributes",​
"Version": "2020-04-01",​
"Service": "transitrouter",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidTransitRouter.InvalidStatus​
The specified Transit Router is not in the correct status for the request.​
指定的中转路由器所处状态无法响应该请求。​
400​
InvalidTransitRouterAttachment.InvalidStatus​
The specified Transit Router Attachment is not in the correct status for the request.​
指定的网络实例连接所处状态无法响应该请求。​
403​
Forbidden.EnableVpnAttachmentHealthCheckerRevokeRoute​
You are not authorized to enable health checker revoke route on vpn attachment.​
无权限开启VPN连接健康检查收敛路由,请开通白名单。​
403​
Forbidden.NoPermissionToOperate​
You are not authorized to operate the specified resource.​
无权限操作指定的资源。​
404​
InvalidTransitRouterAttachment.NotFound​
The specified Transit Router attachment does not exist.​
指定的网络实例连接不存在。​
​
​
最近更新时间:2026.03.24 10:26:55
这个页面对您有帮助吗?
有用
有用
无用
无用