Queries route advertisement policies.
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 Smart Access Gateway (SAG) instance is deployed. | cn-shanghai |
SmartAGId | string | Yes | The ID of the SAG instance. | sag-erx3qta5xg5zyq**** |
SourceType | string | Yes | The type of route. Valid values:
| cloud |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 5,
"PageSize": 10,
"RequestId": "944C2533-1BB7-4578-B6EB-DA05BB61C02A",
"PageNumber": 1,
"Strategies": {
"Strategy": [
{
"Status": "normal",
"StrategyPublishStatus": "publish",
"RouteDistribution": "publish",
"CreateTime": 1622617250000,
"SmartAGId": "sag-erx3qta5xg5zyq****",
"SourceType": "cloud",
"IsConflict": false,
"DestCidrBlock": "192.168.3.0/24",
"ConflictInfo": "\"10.90.6.0/24\":\"vbr-wz900pom71qyr6x67qz65,vbr-wz9f8icxnlcom7riz0gfx\"",
"HcInstanceId": "hc-sztovuprqzgm50****",
"RouteSource": "STATIC"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SAG.InstanceIdEmpty | You must specify the SAG instance ID. | You must specify the SAG instance ID. |
400 | SAG.InstanceNoFound | The specified SAG instance does not exist. | The specified SAG instance does not exist. |
400 | RD.InvalidSourceType | The specified route source type is invalid. | The specified route source type is invalid. |
For a list of error codes, visit the Service error codes.