Search Entities
Using search API you can search Operations for Networks entities by specifying entity type and filter expression. A filter expression is a predicate expression (similar to SQL where clause) used to define the search criteria. Please refer to API Guide on details of how to construct filter expression. A successful search request will return a list of entity ids that matches the search criteria.
Search Request
{
"entity_type": "string",
"filter": "string",
"sort_by": {
"field": "string",
"order": "string"
},
"size": 0,
"cursor": "string",
"time_range": {
"start_time": 1597247025,
"end_time": 1597247999
}
}
entity_type
query filter
size
cursor
Success
{
"results": [
{
"entity_id": "string",
"entity_type": "VirtualMachine",
"time": 0
}
],
"cursor": "ML12eu02==",
"total_count": 100,
"start_time": 1504739809,
"end_time": 1504739809
}
Cursor for the next page
Total number of objects returned
Start timestamp of the window of the objects returned
End timestamp of the window of the objects returned
Bad Request
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
code
message
Unauthorized
Internal Error