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

中转路由器

复制全文
下载 pdf
VPC类型网络实例连接
ModifyCoreNetworkVpcAttachmentAttributes-修改VPC类型网络实例连接
复制全文
下载 pdf
ModifyCoreNetworkVpcAttachmentAttributes-修改VPC类型网络实例连接
调用ModifyCoreNetworkVpcAttachmentAttributes接口,修改指定VPC类型网络实例连接的信息。​
使用说明​
本接口中的非必填参数不传表示不变更。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyCoreNetworkVpcAttachmentAttributes​
接口名称。当前 API 的名称为 ModifyCoreNetworkVpcAttachmentAttributes。​
​
Version String 必选 示例值:2026-06-01​
接口版本。当前 API 的版本为 2026-06-01。​
​
CoreNetworkAttachmentId String 必选 示例值:cn-attach-3tex2x1cwd4c6c0v***​
网络实例连接的ID。​
您可以调用DescribeCoreNetworkVpcAttachments接口获取VPC类型网络实例连接的ID。​
​
AttachPoints.N.SubnetId String 可选 示例值:subnet-2fexiqjlgjif45oxruvso****​
网络实例连接连接点的子网ID。您可以调用DescribeSubnets接口获取子网ID。​
  • N:表示子网ID的序号,取值范围1~10。​
  • 多个子网ID之间用&分隔。​
​
AttachPoints.N.ZoneId String 可选 示例值:cn-beijing-a​
子网所属可用区的ID。​
  • N:表示可用区ID的序号,取值范围1~10。​
  • 多个可用区ID之间用&分隔。​
​
CoreNetworkAttachmentName String 可选 示例值:attachment-02​
网络实例连接的名称。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。​
​
Description String 可选 示例值:This attachment is used for test.​
网络实例连接的描述信息。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。不能以http:// 或者 https://作为开头。​
  • 长度限制为0 ~ 255个字符。​
​
AutoPublishRouteEnabled Boolean 可选 示例值:false​
是否启用路由自动同步。​
  • true:是。​
说明​
仅当该参数配置为true,且网络实例连接关联的核心网中存在路由条目时,系统才会自动同步核心网的路由到网络实例的路由表中。​
  • false:否。​
​
Ipv6Enabled Boolean 可选 示例值:true​
是否启用IPv6。​
  • true:是。​
  • false:否。​
​
ApplianceModeEnabled Boolean 可选 示例值:true​
是否开启路径一致模式。​
  • true:是。​
说明​
开启后,核心网转发流量至该VPC连接时,将选择相同的可用区连接点转发请求流量和返回流量。​
  • false:否。​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=ModifyCoreNetworkVpcAttachmentAttributes&Version=2026-06-01&CoreNetworkAttachmentId=cn-attach-3tex2x1cwd4c6c0v***&AttachPoints.1.SubnetId=subnet-2fexiqjlgjif45oxruvso****&AttachPoints.1.ZoneId=cn-guangzhou-a&CoreNetworkAttachmentName=attachment-02&Description=This attachment is used for test.&AutoPublishRouteEnabled=false&Ipv6Enabled=true&ApplianceModeEnabled=true HTTP/1.1​
Host: transitrouter.cn-guangzhou.volcengineapi.com​
X-Date: 20251029T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-guangzhou/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyCoreNetworkVpcAttachmentAttributes",​
"Version": "2026-06-01",​
"Service": "transitrouter",​
"Region": "cn-guangzhou"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidAttachmentPolicy.NetworkFunctionGroupAutoPublishRoute​
An attachment with auto-publish-route enabled cannot be mapped to a network-function-group.​
关联到网络服务组的连接不能开启路由同步。​
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个字符。​
404​
InvalidVpcAttachment.NotFound​
The specified VPC attachment does not exist.​
指定的VPC网络实例连接不存在。​
​
最近更新时间:2026.06.18 14:27:21
这个页面对您有帮助吗?
有用
有用
无用
无用