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

中转路由器

复制全文
下载 pdf
转发策略
ModifyTransitRouterForwardPolicyEntryAttributes-修改转发策略条目
复制全文
下载 pdf
ModifyTransitRouterForwardPolicyEntryAttributes-修改转发策略条目
调用ModifyTransitRouterForwardPolicyEntryAttributes接口,修改指定转发策略条目的信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyTransitRouterForwardPolicyEntryAttributes​
接口名称。当前 API 的名称为ModifyTransitRouterForwardPolicyEntryAttributes。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为2020-04-01。​
​
TransitRouterForwardPolicyEntryId String 必选 示例值:tr-fpe-hy13n2l4c6c0v****​
转发策略条目的ID。您可以调用DescribeTransitRouterForwardPolicyEntries接口获取转发策略条目的ID。​
​
SourceCidrBlock String 可选 示例值:192.168.XX.XX/24​
转发策略条目的源地址段。支持IPv4和IPv6网段。​
说明​
中转路由器IPv6功能正在邀测中,如需使用,请联系客户经理。​
​
DestinationCidrBlock String 可选 示例值:192.168.XX.XX/24​
转发策略条目的目的地址段。支持IPv4和IPv6网段。​
该参数设置为空时,表示匹配所有目的地址。​
​
Priority Integer 可选 示例值:100​
转发策略条目的优先级。取值范围为1~10000。​
​
TransitRouterRouteTableId String 可选 示例值:tr-rtb-hy13n2l4c6c0v****​
转发路由表的ID。您可以调用DescribeTransitRouterRouteTables接口获取TR路由表的ID。​
​
Description String 可选 示例值:This forward policy entry is used for tests.​
转发策略条目的描述信息。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=ModifyTransitRouterForwardPolicyEntryAttributes&Version=2020-04-01&TransitRouterForwardPolicyEntryId=tr-fpe-hy13n2l4c6c0v**** HTTP/1.1​
Host: transitrouter.cn-beijing.volcengineapi.com​
X-Date: 20250815T034453Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250815/cn-beijing/transitrouter/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250815114457093189045080E048EB",​
"Action": "ModifyTransitRouterForwardPolicyEntryAttributes",​
"Version": "2020-04-01",​
"Service": "transitrouter",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidCidr.Malformed​
The specified cidr block is malformed.​
指定的网段格式不合法。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.TooLong​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidTransitRouter.IPv6NotSupported​
The specified Transit Router does not support the IPv6 feature.​
指定的中转路由器实例不支持IPv6功能。​
400​
InvalidTransitRouter.InvalidBusinessStatus​
The request is denied because the specified Transit Router is shut down due to arrears.​
指定的中转路由器欠费关停,不支持当前操作。​
400​
InvalidTransitRouter.InvalidStatus​
The specified Transit Router is not in the correct status for the request.​
指定的中转路由器所处状态无法响应该请求。​
400​
InvalidTransitRouterForwardPolicyEntry.CidrVersionMismatch​
The specified cidr of the Transit Router forward policy entry is invalid. The source and destination cidr must both IPv4 or IPv6.​
指定的转发策略条目网段无效,源网段和目的网段必须同属于IPv4或IPv6。​
400​
InvalidTransitRouterForwardPolicyEntry.InvalidStatus​
The specified Transit Router forward policy entry is not in the correct status for the request.​
指定的转发策略条目所处状态无法响应该请求。​
400​
InvalidTransitRouterForwardPolicyEntry.PriorityInvalid​
The specified priority of the Transit Router forward policy entry is invalid.​
指定的转发策略条目优先级无效。​
400​
InvalidTransitRouterForwardPolicyEntry.TransitRouterMismatch​
The specified route table and forward policy table do not belong to the same Transit Router.​
指定的路由表和转发策略属于不同的中转路由器。​
400​
InvalidTransitRouterForwardPolicyEntry.TransitRouterNotSupported​
The specified cidr of the Transit Router does not support configuring the forwarding policy entries for the destination cidr.​
指定的中转路由器实例不支持配置目的网段转发策略条目。​
403​
Forbidden.TransitRouterIPv6​
You are not authorized to use ipv6 on Transit Router.​
未开通中转路由器IPv6功能,不支持该操作。​
404​
InvalidTransitRouterForwardPolicyEntry.NotFound​
The specified Transit Router forward policy entry does not exist.​
指定的转发策略条目不存在。​
404​
InvalidTransitRouterRouteTable.NotFound​
The specified route table does not exist.​
指定的中转路由器路由表不存在。​
409​
InvalidTransitRouterForwardPolicyEntry.PriorityConflict​
The specified priority of the Transit Router forward policy entry is conflict with another entry.​
指定的转发策略条目优先级和其它条目冲突。​
​
最近更新时间:2026.03.23 19:11:35
这个页面对您有帮助吗?
有用
有用
无用
无用