Modifies a routing policy of a Cloud Enterprise Network (CEN) instance.
Operation description
ModifyCenRouteMap
is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. You can call the DescribeCenRouteMaps
operation to query the status of a routing policy.
- Modifying: indicates that the system is modifying the routing policy. You can only query the routing policy, but cannot perform other operations.
- Active: indicates that the routing policy is modified.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-7qthudw0ll6jmc**** |
CenRegionId | string | Yes | The ID of the region in which the routing policy is applied. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | cn-hangzhou |
RouteMapId | string | Yes | The ID of the routing policy. | cenrmap-abcdedfghij**** |
Description | string | No | The description of the routing policy. The description cannot start with | desctest |
MapResult | string | Yes | The action to be performed on a route that meets all match conditions. Valid values:
| Permit |
NextPriority | integer | No | The priority of the routing policy that you want to associate with the current one.
| 20 |
CidrMatchMode | string | No | The match method that is used to match routes against the prefix list. Valid values:
| Include |
AsPathMatchMode | string | No | The match method that is used to match routes against the AS paths. Valid values:
| Include |
CommunityMatchMode | string | No | The match method that is sed to match routes based on the community. Valid values:
| Include |
CommunityOperateMode | string | No | The action that is performed on the community. Valid values:
This parameter specifies the action to be performed when a route meets the match condition. | Additive |
Preference | integer | No | The new priority of the route. Valid values: 1 to 100. The default priority is 50. A smaller value indicates a higher priority. This parameter specifies the action to be performed when a route meets the match condition. | 22 |
Priority | integer | Yes | The priority of the routing policy. Valid values: 1 to 100. A smaller value indicates a higher priority. Note
You cannot specify the same priority for routing policies that apply in the same region and direction. The system matches routes against the match conditions of routing policies in descending order of priority. A smaller value indicates a higher priority. You must set the priorities to proper values.
| 10 |
SourceInstanceIdsReverseMatch | boolean | No | Specifies whether to exclude the source network instance IDs. Valid values:
| false |
DestinationInstanceIdsReverseMatch | boolean | No | Specifies whether to exclude the destination network instance IDs. Valid values:
| false |
MatchAddressType | string | No | The type of IP address in the match condition. Valid values:
This parameter can be empty. If no value is specified, all types of IP address are a match. | IPv4 |
SourceInstanceIds | array | No | The IDs of the source network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs. | |
string | No | The IDs of the source network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs. | vpc-afsfdf5435vcvc**** | |
DestinationInstanceIds | array | No | The IDs of the destination network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs. Note
The destination instance IDs take effect only when Direction is set to Export from Regional Gateway and the destination instances are deployed in the current region.
| |
string | No | The IDs of the destination network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs. Note
The destination instance IDs take effect only when Direction is set to Export from Regional Gateway and the destination instances are deployed in the current region.
| vpc-avcdsg34ds**** | |
SourceRouteTableIds | array | No | The IDs of the source route tables to which the routes belong. You can enter at most 32 route table IDs. | |
string | No | The IDs of the source route tables to which the routes belong. You can enter at most 32 route table IDs. | vtb-acdbvtbr342cd**** | |
DestinationRouteTableIds | array | No | The IDs of the destination route tables to which the routes belong. You can enter at most 32 route table IDs. Note
The destination route table IDs take effect only when Direction is set to Export from Regional Gateway and the destination route tables belong to network instances deployed in the current region.
| |
string | No | The IDs of the destination route tables to which the routes belong. You can enter at most 32 route table IDs. Note
The destination route table IDs take effect only when Direction is set to Export from Regional Gateway and the destination route tables belong to network instances deployed in the current region.
| vtb-adfg53c322v**** | |
SourceRegionIds | array | No | The IDs of the source regions to which the routes belong. You can enter at most 32 region IDs. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | |
string | No | The IDs of the source regions to which the routes belong. You can enter at most 32 region IDs. You can call the DescribeChildInstanceRegions operation to query the most recent region list. | cn-beijing | |
SourceChildInstanceTypes | array | No | The types of source network instance to which the routes belong. The following types of network instances are supported:
| |
string | No | The types of source network instance to which the routes belong. The following types of network instances are supported:
| VPC | |
DestinationChildInstanceTypes | array | No | The types of destination network instance to which the routes belong. The following types of network instances are supported:
The destination network instance types are valid only if the routing policy is applied to scenarios where routes are advertised from the gateway in the current region to network instances in the current region. | |
string | No | The types of destination network instance to which the routes belong. The following types of network instance are supported:
The destination network instance types are valid only if the routing policy is applied to scenarios where routes are advertised from the gateway in the current region to network instances in the current region. | VPC | |
DestinationCidrBlocks | array | No | The prefix list against which routes are matched. You must specify the IP addresses in CIDR notation. You can enter at most 32 CIDR blocks. | |
string | No | The prefix list against which routes are matched. You must specify the IP addresses in CIDR notation. You can enter at most 32 CIDR blocks. | 10.10.10.0/24 | |
RouteTypes | array | No | The type of route to be matched against the match condition. The following route types are supported:
| |
string | No | The type of route to be matched against the match condition. The following route types are supported:
| System | |
MatchAsns | array | No | The AS paths against which routes are matched. Note
Only the AS-SEQUENCE parameter is supported. The AS-SET, AS-CONFED-SEQUENCE, and AS-CONFED-SET parameters are not supported. In other words, only the AS number list is supported. Sets and sub-lists are not supported.
| |
integer | No | The AS paths against which routes are matched. Note
Only the AS-SEQUENCE parameter is supported. The AS-SET, AS-CONFED-SEQUENCE, and AS-CONFED-SET parameters are not supported. In other words, only the AS number list is supported. Sets and sub-lists are not supported.
| 65501 | |
MatchCommunitySet | array | No | The community against which routes are matched. Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with the RFC 1997 standard. The RFC 8092 standard that defines BGP large communities is not supported. You can specify at most 32 communities. Note
If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
| |
string | No | The community against which routes are matched. Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with the RFC 1997 standard. The RFC 8092 standard that defines BGP large communities is not supported. You can specify at most 32 communities. Note
If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
| 65501:1 | |
OperateCommunitySet | array | No | The community set on which actions are performed. Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with RFC 1997. The RFC 8092 standard that defines BGP large communities is not supported. You can specify at most 32 communities. Note
If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
| |
string | No | The community set on which actions are performed. Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with RFC 1997. The RFC 8092 standard that defines BGP large communities is not supported. You can specify at most 32 communities. Note
If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
| 65501:1 | |
PrependAsPath | array | No | The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes. The AS paths vary based on the direction in which the routing policy is applied:
This parameter specifies the action to be performed when a route meets the match condition. | |
long | No | The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes. The AS paths vary based on the direction in which the routing policy is applied:
This parameter specifies the action to be performed when a route meets the match condition. | 65501 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B457\t"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidOperation.NoEffictiveAction | No effective action be configured. | The error message returned because the specified action is invalid. |
400 | InvalidOperation.CenRouteMapExist | Operation is invalid because an route map config exist. | The error message returned because this operation is not supported when a routing policy exists. |
400 | Invid.Parameter | When using GatewayRegionId, SourceRegionId must not be null | The error message returned because the GatewayRegionId and SourceRegionId parameters must be set. |
400 | Invid.Parameter | When using GatewayRegionId, GatewayZoneId must not be null | The error message returned because the GatewayRegionId and GatewayZoneId parameters must be set. |
400 | Invid.Parameter | When using GatewayRegionId, SourceRegionId must not be the same with tr region id | The error message returned because the specified gateway region ID (GatewayRegionId) and source region ID (SourceRegionId) cannot be the same. |
400 | Invid.Parameter | GatewayRegionId is invalid | The error message returned because the gateway region ID (GatewayRegionId) is invalid. |
400 | InvalidName | Name is invalid. | The error message returned because the specified name is invalid. |
400 | InvalidDescription | Description is invalid. | The error message returned because the description is invalid. |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-18 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-09-10 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-09-10 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-07-10 | The Error code has changed | View Change Details |
2023-12-13 | The Error code has changed | View Change Details |
2022-07-19 | The Error code has changed. The request parameters of the API has changed | View Change Details |