Query DB for Route Maps (v2.2)
POST/v2.2/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_routemaps/query
Queries the DB for limit number of route maps that match the query parameters.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
- application/json
Body
Query details for route maps
- Array [
- ]
aggregate Aggregate
The aggregate number of route maps that match the query parameters.
data AggregateData[]
The details of the aggregate data.
Value of the aggregate data.
View the aggregate date.
Field
The name of the query response.
Possible values: [max
, count
, min
, avg
, sum
]
Operator
QoS application aggregate statistics.
The unit.
The destination page.
The number of route maps deleted for a time frame.
Group the route maps for the query.
Lists the route maps by ID.
Return the ID of a specified query in the current session.
The query limit.
The limit.
Retrieve information from a field.
List the fields to query.
The total number of query parameters.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
The actual count.
The deleted number.
The deleted IDs.
Description of the query. Max size = 256.
The ID.
Details of the next query.
The tenant ID.
Total number.
items RoutingRouteMapQueryFilterV2N2[]
The value true or false for auto-generated route map for an element.
The description of the route map. Max size = 1024.
The ID of the route map.
The name of the route map. Max size = 128.
route_map_entries RoutingRouteMapEntryV2N2[]
The details of the route map entries.
To continue to use the rule that the route matches.
match MatchClauses
The details of route match.
The AS path ID.
The community list ID.
The IP next-hop ID.
The IP prefix list ID.
A information field that can be added to identify the match clause.
Enter an order number from 1 to 65535 to define the order in which this route map will be used.
It allow routes to be advertised or Deny to block the routes from being advertised.
set SetClauses
The details of the route map set.
The AS path prepend.
The community.
Ip Next Hop
The local preference.
A information field that can be added to identify the set clause.
The weight of the set clause.
A information field that can be added to identify the route map. Maximum 10 unique tags of length 1024 each are allowed.
{
"count": 0,
"deleted_count": 0,
"deleted_ids": [
"string"
],
"id": "string",
"next_query": {},
"tenant_id": "string",
"total_count": 0,
"items": [
{
"auto_generated": true,
"id": "string",
"name": "string",
"route_map_entries": [
{
"continue_entry": "string",
"match": {
"as_path_id": "string",
"community_list_id": "string",
"ip_next_hop_id": "string",
"ip_prefix_list_id": "string",
"tag": 0
},
"order": 0,
"permit": true,
"set": {
"as_path_prepend": "string",
"community": "string",
"ip_next_hop": "string",
"local_preference": 0,
"tag": 0,
"weight": 0
}
}
],
"tags": [
"string"
]
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "BAD_REQUEST"
},
{
"code": "ELEMENT_NOT_ASSIGNED_TO_SITE"
}
]
}
}