Query DB for Community Lists (v2.0)
POST/v2.0/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/routing_ipcommunitylists/query
Queries the DB for limit number of community lists 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 Routing Community
- Array [
- ]
aggregate Aggregate
The aggregate number of community lists 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 community lists deleted for a time frame.
Group the community lists for the query.
Lists the community lists 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 RoutingCommunityListQueryFilter[]
The value true or false for auto-generated IP community lists.
community_list RoutingIPCommunity[]
The details of the IP community lists.
The community string. Max size = 256.
The permit of the IP community sctring = Permit or Deny.
The description of the IP community list. Max size = 1024.
The ID of the IP community list.
The name of the IP community list. Max size = 128.
A information field that can be added to identify the IP community list. 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,
"community_list": [
{
"community_str": "string",
"permit": true
}
],
"id": "string",
"name": "string",
"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"
}
]
}
}