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

中转路由器

复制全文
下载 pdf
中转路由器实例
DescribeTransitRouterAttachmentConfiguration-查询网络实例连接的配置
复制全文
下载 pdf
DescribeTransitRouterAttachmentConfiguration-查询网络实例连接的配置
调用DescribeTransitRouterAttachmentConfiguration接口,查询指定中转路由器网络实例连接的详细配置。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:DescribeTransitRouterAttachmentConfiguration​
接口名称。当前 API 的名称为DescribeTransitRouterAttachmentConfiguration。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为2020-04-01。​
​
TransitRouterAttachmentId String 必选 示例值:tr-attach-13n2l4c****​
网络实例连接的ID。​
​
ConfigurationType String 必选 示例值:StaticRoute​
待查询的网络实例连接配置类型,取值如下:​
  • RouteTableAssociation:关联的路由表。​
  • RouteTablePropagation:关联的路由学习列表。​
  • StaticRoute:静态路由。​
  • VpcCustomRoute:VPC自定义路由。​
  • MulticastDomainAssociation:关联的组播域。​
  • MulticastDomainGroup:关联的组播组。​
  • PeerRouteTableAssociation:Peering连接路由表。​
  • PeerRouteTablePropagation:Peering连接路由学习列表。​
  • PeerStaticRoute:Peering连接静态路由。​
  • FlowLog:流日志信息。​
  • PeerFlowLog:Peering连接流日志信息。​
​
PageNumber Integer 可选 示例值:1​
列表的页码,默认值为1。​
​
PageSize Integer 可选 示例值:20​
分页查询时每页的行数,取值范围为1 ~ 100,默认值为20。​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
ConfigurationEntries Object[] 示例值:-​
查询的网络实例连接配置详情。​
SubnetId String 示例值:subnet-2feb1a8e3x​
连接点的子网ID。​
​
FlowLogId String 示例值:tr-fl-21847261212​
流日志实例的ID。​
​
NextHopId String 示例值:tr-attach-13n2l4c6c0v844f​
路由条目的下一跳 ID。​
​
FlowLogName String 示例值:flowlog-name​
流日志的名称。​
​
NextHopType String 示例值:TransitRouter​
路由条目的下一跳类型。​
​
RouteTableId String 示例值:tr-rtb-3hxn9ush899xmr2​
TR路由表的ID。​
​
FlowLogStatus String 示例值:Available​
流日志的状态。​
  • Active:已启用。​
  • Inactive:已停止。​
  • Creating:创建中。​
  • Pending:配置中。​
  • Deleting:删除中。​
​
GroupIpAddress String 示例值:224.0.0.1​
组播组的IP地址。​
​
RouteEntryName String 示例值:default-route​
路由条目的名称。​
​
FlowLogTlsTopicId String 示例值:tls-topic-id​
流日志的日志项目ID。​
​
MulticastDomainId String 示例值:tr-mcd-2f8x9k1q​
关联的组播域ID。 ​
​
NetworkInterfaceId String 示例值:eni-21847261212​
组播网卡的ID。​
​
FlowLogTlsTopicName String 示例值:tls-topic-name​
流日志的日志项目名称。​
​
DestinationCidrBlock String 示例值:0.0.0.0/0​
转发策略条目的目的地址段。​
​
DestinationPrefixListId String 示例值:pl-asimplevpcprefixlist​
路由条目的目标前缀列表ID。​
​
​
ConfigurationType String 示例值:StaticRoute​
待查询的网络实例连接配置类型。​
  • RouteTableAssociation:关联的路由表。​
  • RouteTablePropagation:关联的路由学习列表。​
  • StaticRoute:静态路由。​
  • VpcCustomRoute:VPC自定义路由。​
  • MulticastDomainAssociation:关联的组播域。​
  • MulticastDomainGroup:关联的组播组。​
  • PeerRouteTableAssociation:Peering连接路由表。​
  • PeerRouteTablePropagation:Peering连接路由学习列表。​
  • PeerStaticRoute:Peering连接静态路由。​
  • FlowLog:流日志信息。​
  • PeerFlowLog:Peering连接流日志信息。​
​
PageNumber Integer 示例值:1​
当前页码。​
​
PageSize Integer 示例值:10​
当前分页的行数。​
​
TotalCount Integer 示例值:2​
符合条件的网络实例连接总数。​
​
​
请求示例​
​
GET /?Action=DescribeTransitRouterAttachmentConfiguration&Version=2020-04-01&TransitRouterAttachmentId=tr-attach-13n2l4c****&ConfigurationType=StaticRoute&PageNumber=1&PageSize=20 HTTP/1.1​
Host: transitrouter.cn-beijing.volcengineapi.com​
X-Date: 20250804T033538Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250804/cn-beijing/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "DescribeTransitRouterAttachmentConfiguration",​
"Version": "2020-04-01",​
"Service": "transitrouter",​
"Region": "cn-beijing"​
},​
"Result": {​
"ConfigurationEntries": [​
{​
"SubnetId": "subnet-2feb1a8e3x",​
"FlowLogId": "tr-fl-21847261212",​
"NextHopId": "tr-attach-13n2l4c6c0v844f",​
"FlowLogName": "flowlog-name",​
"NextHopType": "TransitRouter",​
"RouteTableId": "tr-rtb-3hxn9ush899xmr2",​
"FlowLogStatus": "Available",​
"GroupIpAddress": "224.0.0.1",​
"RouteEntryName": "default-route",​
"FlowLogTlsTopicId": "tls-topic-id",​
"MulticastDomainId": "tr-mcd-2f8x9k1q",​
"NetworkInterfaceId": "eni-21847261212",​
"FlowLogTlsTopicName": "tls-topic-name",​
"DestinationCidrBlock": "0.0.0.0/0",​
"DestinationPrefixListId": "pl-asimplevpcprefixlist"​
}​
],​
"ConfigurationType": "StaticRoute",​
"PageNumber": 1,​
"PageSize": 10,​
"TotalCount": 2​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidPage.Malformed​
The specified page is malformed.​
指定的分页参数不合法。​
403​
Forbidden.NoPermissionToOperate​
You are not authorized to operate the specified resource.​
无权限操作指定的资源。​
404​
InvalidTransitRouterAttachment.NotFound​
The specified Transit Router attachment does not exist.​
指定的网络实例连接不存在。​
​
最近更新时间:2026.07.10 15:50:00
这个页面对您有帮助吗?
有用
有用
无用
无用