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

ModifyTransitRouterForwardPolicyEntryAttributes

最近更新时间2024.04.23 10:56:35

首次发布时间2024.03.26 10:24:49

调用ModifyTransitRouterForwardPolicyEntryAttributes接口,修改指定转发策略条目的信息。

说明

转发策略功能正在邀测中,如需调用该接口,请联系客户经理。

请求参数

名称类型是否必选示例值描述
ActionStringModifyTransitRouterForwardPolicyEntryAttributes要执行的操作,取值为ModifyTransitRouterForwardPolicyEntryAttributes。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。
TransitRouterForwardPolicyEntryIdStringtr-fpe-hy13n2l4c6c0v****转发策略条目的ID。您可以调用DescribeTransitRouterForwardPolicyEntries接口获取转发策略条目的ID。
TransitRouterRouteTableIdStringtr-rtb-hy13n2l4c6c0v****转发路由表的ID。您可以调用DescribeTransitRouterRouteTables接口获取TR路由表的ID。
PriorityInteger100转发策略条目的优先级。取值范围为1~10000。
SourceCidrBlockString192.168.XX.XX/24转发策略条目的源地址段。当前仅支持IPv4网段。

Description

String

This forward policy entry is used for tests.

转发策略条目的描述信息。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。
  • 长度限制为0 ~ 255个字符。

返回参数

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

请求示例

GET /?Action=ModifyTransitRouterForwardPolicyEntryAttributes&Version=2020-04-01&TransitRouterRouteEntryId=tr-rte-b3ahl8r****&TransitRouterRouteEntryName=trentry01 HTTP/1.1
Host: open.volcengineapi.com
Service: transitrouter
Region: cn-guangzhou

返回示例

{
    "ResponseMetadata": {
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****",
        "Action": "ModifyTransitRouterForwardPolicyEntryAttributes",
        "Version": "2020-04-01",
        "Service": "transitrouter",
        "Region": "cn-guangzhou"
    },
    "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode错误码错误信息描述
400InvalidCidr.MalformedThe specified cidr block is malformed.指定的网段格式不合法。
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法。请修复描述格式后重试。
400InvalidDescription.TooLongThe specified description is malformed. Ensure the maximum length of description is 255.指定的描述格式不合法。描述长度不能超过255个字符。
400InvalidTransitRouter.InvalidStatusThe specified Transit Router is not in the correct status for the request.指定的中转路由器所处状态无法响应该请求。
400InvalidTransitRouterForwardPolicyEntry.InvalidStatusThe specified Transit Router forward policy entry is not in the correct status for the request.指定的转发策略条目所处状态无法响应该请求。
400InvalidTransitRouterForwardPolicyEntry.SourceCidrBlockIsIPv6The specified source cidr block of Transit Router forward policy entry is IPv6, only IPv4 cidr block is supported.指定中转路由器转发策略条目的源网段为IPv6,当前仅支持IPv4策略条目。
400InvalidTransitRouterForwardPolicyEntry.TransitRouterMismatchThe specified route table and forward policy table do not belong to the same Transit Router.指定的路由表和转发策略属于不同的中转路由器。
400InvalidTransitRouter.InvalidBusinessStatusThe request is denied because the specified Transit Router is shut down due to arrears.指定的中转路由器欠费关停,不支持当前操作。
404InvalidTransitRouterForwardPolicyEntry.NotFoundThe specified Transit Router forward policy entry does not exist.指定的转发策略条目不存在。
404InvalidTransitRouterForwardPolicyEntry.PriorityInvalidThe specified priority of the Transit Router forward policy entry is invalid.指定的转发策略条目优先级无效。
404InvalidTransitRouterRouteTable.NotFoundThe specified route table does not exist.指定的中转路由器路由表不存在。
409InvalidTransitRouterForwardPolicyEntry.PriorityConflictThe specified priority of the Transit Router forward policy entry is conflict with another entry.指定的转发策略条目优先级和其它条目冲突。