This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Query the route publishing status
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The ID of the region where the instance is located. | cn-hangzhou |
| RouteTableId | string | Yes | The ID of the route table. | vtb-bp145q7glnuzd**** |
| DestinationCidrBlock | string | No | The destination CIDR block of the route entry, supporting both IPv4 and IPv6 segments. | 47.100.XX.XX/16 |
| TargetType | string | Yes | The type of the route publishing target. | ECR |
| TargetInstanceId | string | No | The ID of the route publishing target instance. | ecr-dhw2xsds5**** |
| MaxResults | integer | No | The number of entries to display per batch query. Range: 1~500, default value is 50. | 50 |
| NextToken | string | No | Indicates whether there is a token for the next query. Values:
| FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "1D0971B2-A35A-42C1-A44C-E91360C36C0B",
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RouteEntries": [
{
"RouteEntryId": "rte-bp1mnnr2al0naomnpv****",
"DestinationCidrBlock": "10.0.0.0/24",
"RouteTableId": "vtb-2ze3jgygk9bmsj23s****",
"RoutePublishTargets": [
{
"PublishStatus": "Published",
"PublishTargetType": "ECR",
"PublishTargetInstanceId": "ecr-xvuqdfma6x57ei****"
}
]
}
]
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | ResourceNotAssociated.TargetInstance | The target instance is not associated with vpc. | The destination instance of the route is not associated with the VPC. |
| 400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | The gateway route table does not exist. |
| 400 | IllegalParam.NextToken | The specified NextToken is invalid. | The specified NextToken is invalid. |
| 400 | IllegalParam.NextTokenExpired | The specified NextToken is invalid. | The specified NextToken is invalid. |
| 400 | IllegalParam.TargetType | The parameter of TargetType is illegal. | The parameter TargetType is illegal. |
| 400 | OperationDenied.UnexpectedRouteTable | Operation is denied because only system route table supports publishing route entries. | The operation was denied because only the system routing table supports publishing routes |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-11-27 | The Error code has changed | View Change Details |
| 2024-09-13 | The Error code has changed. The response structure of the API has changed | View Change Details |
