Queries conflicting route entries in a specified network instance.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

Request parameters

Parameter Type Required? Example value Description
Action String No DescribeRouteConflict

The name of this action. Value: DescribeRouteConflict

ChildInstanceId String Yes vpc-bp18sth14qii3pn****

The ID of the network to which the conflicting route entry belongs.

ChildInstanceRegionId String Yes cn-hangzhou

The ID of the region to which the network instance belongs.

ChildInstanceRouteTableId String Yes vtb-bp174d1gje79u1g4t****

The ID of the route table to which the conflicting route entry belongs.

ChildInstanceType String Yes VBR

The type of the network instance. Valid values:

  • VPC: Virtual Private Cloud (VPC)
  • VBR: Virtual Border Router (VBR)
  • CCN: Mainland China Cloud Connect Network (CCN)
PageNumber Integer No 1

The page number. Default value: 1

PageSize Integer No 2

The number of entries per page in the case of a paged query result. Maximum value: 50. Default value: 10.

DestinationCidrBlock String No 172.16.xx.xx/24

The destination CIDR block of the conflicting route entry to be queried.

Response parameters

Parameter Type Example value Description
RequestId String B6C11547-2D56-4EEC-A8D5-FDC5A53E53D0

The ID of the request.

PageNumber Integer 1

The current page number.

TotalCount Integer 2

The number of total entries.

PageSize Integer 1

The number of entries per page.

RouteConflicts Array

Details of the conflicting route entries.

DestinationCidrBlock String 172.16.xx.xx/24

The destination CIDR block of the conflicting route entry.

RegionId String cn-hangzhou

The ID of the region.

InstanceId String vbr-bp174d1gje79u1****

The ID of the network instance.

InstanceType String VBR

The type of the network instance. Valid values:

  • VPC: VPC
  • VBR: VBR
  • CCN: Mainland China CCN
Status String conflict

The cause of route exceptions. Valid values:

  • conflict: The route entry is in conflict with other route entries.
  • overflow: The number of router entries in other networks exceeds the limit.
  • prohibited: The route entry is not allowed by VBR.

Examples

Request example

http(s)://[Endpoint]/? Action=DescribeRouteConflict
&ChildInstanceId=vpc-bp18sth14qii3pn****
&ChildInstanceRegionId=cn-hangzhou
&ChildInstanceRouteTableId=vtb-bp174d1gje79u1g4t****
&ChildInstanceType=VBR
&<Common request parameters>

Response example

XML format

<DescribeRouteConflictResponse>
      <PageNumber>1</PageNumber>
      <PageSize>10</PageSize>
      <RequestId>B6C11547-2D56-4EEC-A8D5-FDC5A53E53D0</RequestId>
      <RouteConflicts>
            <RouteConflict></RouteConflict>
      </RouteConflicts>
      <TotalCount>0</TotalCount>
</DescribeRouteConflictResponse>

JSON format

{
  "PageNumber": 1,
  "TotalCount": 0,
  "PageSize": 10,
  "RequestId": "B6C11547-2D56-4EEC-A8D5-FDC5A53E53D0",
  "RouteConflicts": {
    "RouteConflict": []
  }
}

Errors

For a list of error codes, visit the API Error Center.