Queries conflicting routes on a network instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeRouteConflict

The operation that you want to perform. Set the value to DescribeRouteConflict.

ChildInstanceId String Yes ccn-0q3b7oviikmm9h****

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

ChildInstanceRegionId String Yes ccn-cn-shanghai

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

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

ChildInstanceRouteTableId String Yes vtb-bp174d1gje79u1g4t****

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

ChildInstanceType String Yes CCN

The type of the network instance. Valid values:

  • VPC
  • VBR
  • CCN
PageNumber Integer No 1

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

PageSize Integer No 10

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

DestinationCidrBlock String No 172.16.0.0/16

The destination CIDR block of the conflicting route.

Response parameters

Parameter Type Example Description
PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned per page.

RequestId String EE3A2CC7-41F1-58DB-8306-CFC99D9C747B

The ID of the request.

RouteConflicts Array of RouteConflict

The array of conflicting routes.

RouteConflict
DestinationCidrBlock String 172.16.0.0/16

The destination CIDR block of the conflicting route.

InstanceId String ccn-0q3b7oviikmm9h****

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

InstanceType String CCN

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

  • VPC
  • VBR
  • CCN
RegionId String ccn-cn-shanghai

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

Status String conflict

The cause of the route error. Valid values:

  • conflict: 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.
TotalCount Integer 1

The total number of entries returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeRouteConflict
&ChildInstanceId=ccn-0q3b7oviikmm9h****
&ChildInstanceRegionId=ccn-cn-shanghai
&ChildInstanceRouteTableId=vtb-bp174d1gje79u1g4t****
&ChildInstanceType=CCN
&<Common request parameters>

Sample responses

XML format

<DescribeRouteConflictResponse>
  <TotalCount>1</TotalCount>
  <RequestId>EE3A2CC7-41F1-58DB-8306-CFC99D9C747B</RequestId>
  <PageSize>10</PageSize>
  <PageNumber>1</PageNumber>
  <RouteConflicts>
        <RouteConflict>
              <InstanceId>ccn-0q3b7oviikmm9h****</InstanceId>
              <DestinationCidrBlock>172.16.0.0/16</DestinationCidrBlock>
              <RegionId>ccn-cn-shanghai</RegionId>
              <InstanceType>CCN</InstanceType>
        </RouteConflict>
  </RouteConflicts>
</DescribeRouteConflictResponse>

JSON format

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

Error codes

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