Group Search Results
Using groupby search API you can group search results for Operations for Networks entities by specifying entity type, filter expression, aggregate clause and groupby clause. Please refer to API Guide on details of how to construct filter expression, aggregate clause and groupby clause. A successful search request will return a list of groups.
GroupBy Request
{
"entity_type": "string",
"filter": "string",
"aggregations": [
{
"field": "flow.totalBytes.delta.summation.bytes",
"aggregation_type": "string"
}
],
"group_by": [
"string"
],
"sort_by": [
{
"field": "string",
"aggregation_type": "string",
"order": "string"
}
],
"time_range": {
"start_time": 1597247025,
"end_time": 1597247999
},
"size": 0,
"cursor": "string"
}
entity_type
query filter
aggregations
group_by
sort_by
time_range
size
cursor
Success
"SearchGroupByResponse Object"
results
size
total_bucket
Total count of objects returned
time_range
Cursor for the next page
Bad Request
"ApiError Object"
code
message
details
Unauthorized
Internal Error
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/ni/search/groupby