ModifyCenRouteMap

Updated at:

Modifies a route map.

Operation description

The ModifyCenRouteMap operation is asynchronous. The system returns a RequestId, but the route map is not immediately modified. The modification task continues to run in the background. You can call the DescribeCenRouteMaps operation to query the status of the route map.

  • If the route map is in the Modifying state, the route map is being modified. In this state, you can only perform query operations.

  • If the route map is in the Active state, the route map is modified.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cen:ModifyCenRouteMap

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

CenId

string

Yes

The Cloud Enterprise Network (CEN) instance ID.

cen-7qthudw0ll6jmc****

CenRegionId

string

Yes

The ID of the region where the route map is applied.

You can call the DescribeChildInstanceRegions operation to query region IDs.

cn-hangzhou

RouteMapId

string

Yes

The ID of the route map.

cenrmap-abcdedfghij****

Description

string

No

The description of the route map.

The description can be empty or 1 to 256 characters in length. It cannot start with http:// or https://.

desctest

MapResult

string

Yes

The action that is performed when a route meets all match conditions. Valid values:

  • Permit: Permits the matched route.

  • Deny: Denies the matched route.

Valid values:

  • Permit :

    Permits the route.

  • Deny :

    Denies the route.

Permit

NextPriority

integer

No

Policy priority of the next route map to be associated.

  • You can set policy priority of the associated route map only when MapResult is set to Permit. Only permitted routes are evaluated against the next associated route map.

  • The next route map to be associated must be applied in the same region and transmission direction as the current route map.

  • Policy priority of the next associated route map must be lower (policy priority value must be greater) than that of the current route map.

20

CidrMatchMode

string

No

The match mode of the prefix list. Valid values:

  • Include: fuzzy match. A route matches the condition if the route prefix in the match condition contains the route prefix of the evaluated route.

For example, if the match condition specifies 10.10.0.0/16, a route with the prefix 10.10.1.0/24 matches the condition.

  • Complete: exact match. A route matches the condition only if the route prefix in the match condition is exactly the same as the route prefix of the evaluated route.

For example, if the match condition specifies 10.10.0.0/16, only a route with the prefix 10.10.0.0/16 matches the condition.

Valid values:

  • Complete :

    Exact match.

  • Include :

    Fuzzy match.

Include

AsPathMatchMode

string

No

The match mode of the AS path list. Valid values:

  • Include: fuzzy match. A route matches the condition if the AS path in the match condition overlaps with the AS path of the evaluated route.

  • Complete: exact match. A route matches the condition only if the AS path in the match condition is exactly the same as the AS path of the evaluated route.

Valid values:

  • Complete :

    Exact match.

  • Include :

    Fuzzy match.

Include

CommunityMatchMode

string

No

The match mode of the community. Valid values:

  • Include: fuzzy match. A route matches the condition if the community in the match condition overlaps with the community of the evaluated route.

  • Complete: exact match. A route matches the condition only if the community in the match condition is exactly the same as the community of the evaluated route.

  • Contain: inclusive match. A route matches the condition only if the community of the evaluated route contains all communities specified in the match condition.

Valid values:

  • Complete :

    Exact match.

  • Include :

    Fuzzy match.

  • Contain :

    Inclusive match.

Include

CommunityOperateMode

string

No

The action that is performed on the community of a route that meets the match conditions. Valid values:

  • Additive: adds a community to the route.

  • Replace: replaces the existing community of the route.

Valid values:

  • Replace :

    Replaces the existing community.

  • Additive :

    Adds a community.

Additive

Preference

integer

No

The priority of the route. This action is performed when a route meets the match conditions.

Valid values: 1 to 100. The default value is 50. A smaller value indicates a higher priority.

22

Priority

integer

Yes

The policy priority. Valid values: 1 to 100. A smaller value indicates a higher priority.

Note

The policy priority of each route map applied in the same region and transmission direction must be unique. When the system executes a route map, it starts matching conditional statements from the route map with the smallest policy priority value. Therefore, when specifying the policy priority of a route map, ensure it meets the expected matching order of statements.

10

SourceInstanceIdsReverseMatch

boolean

No

Specifies whether to enable the reverse match mode for the source instance ID list. Valid values:

  • false (default): disables the reverse match mode. A route matches the condition if its source instance ID is in the SourceInstanceIds.N list.

  • true: enables the reverse match mode. A route matches the condition if its source instance ID is not in the SourceInstanceIds.N list.

false

DestinationInstanceIdsReverseMatch

boolean

No

Specifies whether to enable the reverse match mode for the destination instance ID list. Valid values:

  • false (default): disables the reverse match mode. A route matches the condition if its destination instance ID is in the DestinationInstanceIds.N list.

  • true: enables the reverse match mode. A route matches the condition if its destination instance ID is not in the DestinationInstanceIds.N list.

false

MatchAddressType

string

No

The IP address family of the route to be matched. Valid values:

  • IPv4: matches only IPv4 routes.

  • IPv6: matches only IPv6 routes.

If this parameter is left empty, all types of routes are matched.

IPv4

SourceInstanceIds

array

No

The IDs of the source instances to be matched. You can enter the IDs of the following types of instances:

  • Virtual private cloud (VPC)

  • Virtual border router (VBR)

  • Cloud Connect Network (CCN)

  • Smart Access Gateway (SAG)

  • IPsec-VPN connection

You can enter up to 64 instance IDs.

["vpc-afsfdf5435vcvc****"]

string

No

The IDs of the source instances to be matched. You can enter the IDs of the following types of instances:

  • Virtual private cloud (VPC)

  • Virtual border router (VBR)

  • Cloud Connect Network (CCN)

  • Smart Access Gateway (SAG)

  • IPsec-VPN connection

You can enter up to 64 instance IDs.

vpc-afsfdf5435vcvc****

DestinationInstanceIds

array

No

The IDs of the destination instances to be matched. You can enter the IDs of the following types of instances:

  • Virtual private cloud (VPC)

  • Virtual border router (VBR)

  • Cloud Connect Network (CCN)

  • Smart Access Gateway (SAG)

  • IPsec-VPN connection

You can enter up to 64 instance IDs.

Note

The destination instance ID list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination instances are deployed in the local region.

["vpc-avcdsg34ds****"]

string

No

The IDs of the destination instances to be matched. You can enter the IDs of the following types of instances:

  • Virtual private cloud (VPC)

  • Virtual border router (VBR)

  • Cloud Connect Network (CCN)

  • Smart Access Gateway (SAG)

  • IPsec-VPN connection

You can enter up to 64 instance IDs.

Note

The destination instance ID list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination instances are deployed in the local region.

vpc-avcdsg34ds****

SourceRouteTableIds

array

No

The IDs of the source route tables to be matched. You can enter up to 64 route table IDs.

["vtb-acdbvtbr342cd****"]

string

No

The IDs of the source route tables to be matched. You can enter up to 64 route table IDs.

vtb-acdbvtbr342cd****

DestinationRouteTableIds

array

No

The IDs of the destination route tables to be matched. You can enter up to 64 route table IDs.

Note

The destination route table ID list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination route tables belong to network instances in the local region.

["vtb-adfg53c322v****"]

string

No

The IDs of the destination route tables to be matched. You can enter up to 64 route table IDs.

Note

The destination route table ID list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination route tables belong to network instances in the local region.

vtb-adfg53c322v****

SourceRegionIds

array

No

The IDs of the source regions to be matched. You can enter up to 64 region IDs.

You can call the DescribeChildInstanceRegions operation to query region IDs.

["cn-beijing"]

string

No

The IDs of the source regions to be matched. You can enter up to 64 region IDs.

You can call the DescribeChildInstanceRegions operation to query region IDs.

cn-beijing

SourceChildInstanceTypes

array

No

The types of the source instances to be matched. Valid values:

  • VPC: VPC

  • VBR: border router instance.

  • CCN: CCN

  • VPN: VPN gateway instance or IPsec-VPN connection

    • If an IPsec-VPN connection or SSL server is attached to a VPN gateway instance, the VPC associated with the VPN gateway instance must be connected to a forward router instance, and the VPN gateway instance must run the BGP dynamic routing protocol for this parameter to take effect.

    • If an IPsec-VPN connection is directly attached to a forward router instance, this parameter takes effect.

["VPC"]

string

No

The types of the source instances to be matched. Valid values:

  • VPC: VPC

  • VBR: border router instance.

  • CCN: CCN

  • VPN: VPN gateway instance or IPsec-VPN connection

    • If an IPsec-VPN connection or SSL server is attached to a VPN gateway instance, the VPC associated with the VPN gateway instance must be connected to a forward router instance, and the VPN gateway instance must run the BGP dynamic routing protocol for this parameter to take effect.

    • If an IPsec-VPN connection is directly attached to a forward router instance, this parameter takes effect.

VPC

DestinationChildInstanceTypes

array

No

The types of the destination instances to be matched. Valid values:

  • VPC: VPC

  • VBR: VBR

  • CCN: CCN

  • VPN: IPsec-VPN connection

    Note

    If an IPsec-VPN connection or SSL server is associated with a VPN gateway, and the VPN gateway is connected to a transit router through its associated VPC, this parameter does not take effect. This parameter takes effect only when an IPsec-VPN connection is directly associated with a transit router.

The destination instance type list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination instances are deployed in the local region.

["VPC"]

string

No

The types of the destination instances to be matched. Valid values:

  • VPC: VPC

  • VBR: VBR

  • CCN: CCN

  • VPN: IPsec-VPN connection

    Note

    If an IPsec-VPN connection or SSL server is associated with a VPN gateway, and the VPN gateway is connected to a transit router through its associated VPC, this parameter does not take effect. This parameter takes effect only when an IPsec-VPN connection is directly associated with a transit router.

The destination instance type list takes effect only when the transmission direction of the route map is set to outbound from the regional gateway and the destination instances are deployed in the local region.

VPC

DestinationCidrBlocks

array

No

The prefix list to be matched.

The CIDR blocks in the prefix list must be in CIDR format. You can enter up to 64 CIDR blocks.

["10.10.10.0/24"]

string

No

The prefix list to be matched.

The CIDR blocks in the prefix list must be in CIDR format. You can enter up to 64 CIDR blocks.

10.10.10.0/24

RouteTypes

array

No

The types of the routes to be matched. Valid values:

  • System: system route, which is automatically generated by the system.

  • Custom: custom route, which is manually added by users.

  • BGP: BGP route, which is propagated through the BGP routing protocol.

["System"]

string

No

The types of the routes to be matched. Valid values:

  • System: system route, which is automatically generated by the system.

  • Custom: custom route, which is manually added by users.

  • BGP: BGP route, which is propagated through the BGP routing protocol.

System

MatchAsns

array

No

The AS path list to be matched.

Note

Only AS SEQUENCE is supported. AS SET, AS CONFED SEQUENCE, and AS CONFED SET are not supported. You can specify only a list of AS numbers. Sets and sublists are not supported.

[65501]

integer

No

The AS path list to be matched.

Note

Only AS SEQUENCE is supported. AS SET, AS CONFED SEQUENCE, and AS CONFED SET are not supported. You can specify only a list of AS numbers. Sets and sublists are not supported.

65501

MatchCommunitySet

array

No

The community set to be matched.

Each community must be in the n:m format, where n and m are integers from 1 to 65535. Communities must comply with RFC 1997. Large communities defined in RFC 8092 are not supported.

You can enter up to 64 communities.

Note

Incorrect community configurations may prevent routes from being advertised to the on-premises data center.

["65501:1"]

string

No

The community set to be matched.

Each community must be in the n:m format, where n and m are integers from 1 to 65535. Communities must comply with RFC 1997. Large communities defined in RFC 8092 are not supported.

You can enter up to 64 communities.

Note

Incorrect community configurations may prevent routes from being advertised to the on-premises data center.

65501:1

OperateCommunitySet

array

No

The community set to be operated on.

Each community must be in the n:m format, where n and m are integers from 1 to 65535. Communities must comply with RFC 1997. Large communities defined in RFC 8092 are not supported.

You can enter up to 32 communities.

Note

Incorrect community configurations may prevent routes from being advertised to the on-premises data center.

["65501:1"]

string

No

The community set to be operated on.

Each community must be in the n:m format, where n and m are integers from 1 to 65535. Communities must comply with RFC 1997. Large communities defined in RFC 8092 are not supported.

You can enter up to 32 communities.

Note

Incorrect community configurations may prevent routes from being advertised to the on-premises data center.

65501:1

PrependAsPath

array

No

The AS path to be prepended when the regional gateway accepts a route or performs a publish route entry.

The requirements for prepending an AS path vary based on the application direction of the routing policy:

  • When configuring an additional AS path in the inbound direction to the regional gateway, the match conditions must include the source instance ID list and source region, and the source region must be the same as the region where the routing policy is applied.

  • When configuring an additional AS path in the outbound direction from the regional gateway, the match conditions must include the destination instance ID list.

This parameter indicates the operation to execute after the routing passes the match conditions.

[65501]

integer

No

The AS path to be prepended when the regional gateway accepts a route or performs a publish route entry.

The requirements for prepending an AS path vary based on the application direction of the routing policy:

  • When configuring an additional AS path in the inbound direction to the regional gateway, the match conditions must include the source instance ID list and source region, and the source region must be the same as the region where the routing policy is applied.

  • When configuring an additional AS path in the outbound direction from the regional gateway, the match conditions must include the destination instance ID list.

This parameter indicates the operation to execute after the routing passes the match conditions.

65501

DestinationRegionIds

array

No

The IDs of the destination regions to be matched. You can enter up to 64 region IDs.

string

No

The IDs of the destination regions to be matched. You can enter up to 64 region IDs.

cn-beijing

Response elements

Element

Type

Description

Example

object

The response structure.

RequestId

string

The request ID.

54B48E3D-DF70-471B-AA93-08E683A1B457

Examples

Success response

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 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 InvalidParam.DestinationInstanceIds When using "PrependAsPath" in the "RegionOut", "DestinationInstanceIds" must be local region instances. When using the PrependAsPath option in a RegionOut configuration, the DestinationInstanceIds target instance should be within the local domain.
400 Forbidden.NoMedAuthorized Med operation is unauthorized. Unable to operate on the specified Med routing policy.
400 InvalidOperation.MedRouteMapExist Operation is invalid because the default med route map already exist. The operation is invalid because there is already a med routeMap with the next hop destination for this Ecr instance.
400 InvalidOperation.MedRouteMapNotAllowedOtherAction Operation is invalid because the default med not allowed other action. the med policy does not allow to configure other policies.
400 InvalidOperation.MedRouteMapActionMustPermit Operation is invalid because the default med map result must be permit. Operation is invalid because the default med map result must be permit.
400 InvalidParameter.MedRouteMapDestInstanceIds Param DestInstanceIds must be ecr instance id. The destination instance list of med routeMap must be ECR instance.
400 InvalidParameter.MedRouteMapDestInstanceType Param DestChildInstanceTypes must be ecr. The destination instance type of the med routeMap must be ECR.
400 InvalidOperation.PrependAsPathWithInvalidSourceRegionId When using PrependAsPath in the RegionIn direction, SourceRegionId must be local region ID. When using PrependAsPath in the RegionIn direction, SourceRegionId must be local region ID.
400 InvalidOperation.PrependAsPathWithInvalidSourceInstanceIds When using PrependAsPath in the RegionIn direction, SourceInstanceIds must be local instance ids. When using PrependAsPath in the RegionIn direction, SourceInstanceIds must be local instance ids.
400 InvalidOperation.TransitRouterNotExist Operation is invalid because the transit router not exist. The error message returned because the specified transit router does not exist.
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.
400 InvalidParameter.RouteMapId The specified parameter RouteMapId is invalid. The parameter RouteMapId entered is illegal.
400 InvalidParameter.CenId The specified parameter CenId is invalid. The entered parameter CenId is invalid.
400 InvalidParameter.CenRegionId The specified parameter CenRegionId is invalid. The specified parameter CenRegionId is invalid.
400 InvalidParameter.SourceRegionIds The specified SourceRegionIds is invalid. The specified SourceRegionIds is invalid.
400 InvalidParameter.DestinationRegionIds The specified DestinationRegionIds is invalid. The specified DestinationRegionIds is invalid.
400 InvalidParameter.SourceZoneIds The specified parameter SourceZoneIds is invalid. The specified parameter SourceZoneIds is invalid.
400 InvalidParameter.GatewayZoneId The specified parameter GatewayZoneId is invalid. The specified parameter GatewayZoneId is invalid.
400 InvalidParameter.GatewayRegionId The specified parameter GatewayRegionId is invalid. The specified parameter GatewayRegionId is invalid.
400 InvalidParameter.SourceRouteTableIds The specified parameter SourceRouteTableIds is invalid. The specified parameter SourceRouteTableIds is invalid.
400 InvalidParameter.OriginalRouteTableIds The specified parameter OriginalRouteTableIds is invalid. The specified parameter OriginalRouteTableIds is invalid.
400 InvalidParameter.DestinationRouteTableIds The specified parameter DestinationRouteTableIds is invalid. The specified parameter DestinationRouteTableIds is invalid.
400 InvalidParameter.SourceInstanceIds The specified parameter SourceInstanceIds is invalid. The specified parameter SourceInstanceIds is invalid.
400 InvalidParameter.DestinationInstanceIds The specified parameter DestinationInstanceIds is invalid. The specified parameter DestinationInstanceIds is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.