Retrieve Monitor Details by Filter
GET/query/objects/
Call this API to get the details of monitors based on specific filters. The filter parameter must be provided in the query to filter and retrieve monitors that match the specified criteria.
Request
Query Parameters
The filter is an object that contains key-value pairs to filter monitors by specific criteria. The key
indicates what attribute to filter by (e.g. object type) and the value
provides the acceptable values for that attribute.
Responses
- 200
- 400
- 403
- 500
Successful response. The request was successful, and the details of the monitors matching the specified filters were returned.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
result object[]
object.context object
{
"result": [
{
"id": 48159328544,
"object.target": "172.16.8.2",
"object.ip": "172.16.8.2",
"object.host": "cisco_core.motadata.local",
"object.name": "cisco_core.motadata.local",
"object.system.oid": ".1.3.6.1.4.1.9.1.2494",
"object.type": "Switch",
"object.discovery.method": "REMOTE",
"object.state": "ENABLE",
"object.category": "Network",
"remote.address": "127.0.0.1",
"user.name": "admin",
"object.creation.time": "2024/07/11 15:21:18",
"object.creation.time.seconds": 1720691478,
"object.business.hour.profile": 10000000000001,
"object.id": 10,
"object.groups": [
10000000000002
],
"object.snmp.device.catalog": 10000000011869,
"object.make.model": "Cisco Catalyst 93xx Switch Stack",
"object.context": {
"ping.check.status": "yes",
"port": 161,
"snmp.check.retries": 2,
"interface.discovery": "yes",
"topology.plugin.discovery": "yes"
},
"object.vendor": "Cisco Systems"
}
]
}
The request was invalid. Possible reasons could include missing required parameters or incorrect parameter values.
- application/json
- Schema
- Example (from schema)
Schema
{
"response-code": 400,
"status": "fail",
"message": "Bad request",
"error.code": "MD031"
}
Request Forbidden. The request was forbidden. The client does not have permission to access this resource.
- application/json
- Schema
- Example (from schema)
Schema
{
"response-code": 403,
"message": "Unauthorized access: Client is not allowed to access API",
"error.code": "MD022"
}
Internal server error. An internal server error occurred while processing the request.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
result object[]
{
"result": [
{
"response-code": 500,
"status": "fail",
"message": "Internal server exception, Possible reason: Cannot invoke \"String.length()\" because \"content\" is null",
"error.code": "MD031",
"error": "io.vertx.core.json.jackson.DatabindCodec.createParser(DatabindCodec.java:116)\n\tat io.vertx.core.json.jackson.DatabindCodec.fromString(DatabindCodec.java:90)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:83)\n\tat io.vertx.core.json.Json.decodeValue(Json.java:95)\n\tat"
}
]
}