All Products
Search
Document Center

Cloud Enterprise Network:DescribeRouteConflict

Last Updated:Mar 01, 2024

Queries overlapping routes of a network instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cen:DescribeRouteConflictRead
  • VPC
    acs:vpc:*:{#accountId}:vpc/{#vpcId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.

10
ChildInstanceIdstringYes

The ID of the network instance that you want to query.

ccn-0q3b7oviikmm9h****
ChildInstanceTypestringYes

The type of the network instance. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • CCN: Cloud Connect Network (CCN) instance
CCN
ChildInstanceRegionIdstringYes

The ID of the region where the network instance is deployed.

You can call the DescribeChildInstanceRegions operation to query the most recent region list.

ccn-cn-shanghai
ChildInstanceRouteTableIdstringYes

The ID of the route table that is configured on the network instance.

vtb-bp174d1gje79u1g4t****
DestinationCidrBlockstringNo

The destination CIDR block of the conflicting route.

172.16.0.0/16

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

10
RequestIdstring

The ID of the request.

EE3A2CC7-41F1-58DB-8306-CFC99D9C747B
PageNumberinteger

The page number of the returned page.

1
TotalCountinteger

The total number of entries returned.

1
RouteConflictsobject []

A list of overlapping routes.

Statusstring

The cause of the route error. Valid values:

  • conflict: The routes have the same destination CIDR block.
  • overflow: The number of routes in the route table configured on another network instance has reached the upper limit.
conflict
DestinationCidrBlockstring

The destination CIDR block of the overlapping route.

172.16.0.0/16
InstanceIdstring

The ID of the peer network instance on which the overlapping routes are found.

ccn-0q3b7oviikmm9h****
InstanceTypestring

The type of the peer network instance on which the overlapping routes are found.

  • VPC: VPC
  • VBR: VBR
  • CCN: CCN instance
CCN
RegionIdstring

The region ID of the peer network instance on which the overlapping routes are found is deployed.

ccn-cn-shanghai

Examples

Sample success responses

JSONformat

{
  "PageSize": 10,
  "RequestId": "EE3A2CC7-41F1-58DB-8306-CFC99D9C747B",
  "PageNumber": 1,
  "TotalCount": 1,
  "RouteConflicts": {
    "RouteConflict": [
      {
        "Status": "conflict",
        "DestinationCidrBlock": "172.16.0.0/16",
        "InstanceId": "ccn-0q3b7oviikmm9h****",
        "InstanceType": "CCN",
        "RegionId": "ccn-cn-shanghai"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterInvalid parameter.The error message returned because the parameter is set to an invalid value.
400UnauthorizedThe AccessKeyId is unauthorized.The error message returned because you do not have the permissions to perform this operation.
404InvalidChildInstanceId.NotFoundThe specified ChildInstanceId is not found.The specified child instance ID does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-18The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Added Error Codes: 404