Poll Agents For Affected Polling Groups

Poll Agents For Affected Polling Groups

API to check the polling groups associated with the agents selected. This is to check the agents before deleting them

Request
URI
POST
https://{api_host}/tcsa.host.com/tcsa/api/v1/snmp/agents/poll
COPY
Query Parameters
string
snmpIntegration
Optional

The name of the current snmp integration

snmpIntegration example
snmp-integration

Request Body

The list of Snmp agents to be deleted

Array of string of type(s) application/json
Optional
[
    "10.106.232.55:161"
]
Authentication
This operation uses the following authentication methods.
Responses
200

OK Requested map of all the agents and their affected polling groups.

Returns Array of PollObject of type(s) application/json
[
    {
        "name": "10.106.232.55:161",
        "pollingGroups": [
            "GEN-LVM1OJXVO0-300"
        ]
    }
]

400

BAD REQUEST Error in the request sent

Returns SnmpError of type(s) application/json
{
    "code": "SNMP_COLLECTOR_API_006",
    "reason": "No Snmp collector running, discovery cannot be performed",
    "status": "404 Not Found"
}
string
code
Optional

This code refers to the internal error codes used in the code base.

string
reason
Optional

This specifies the reason for failure.

string
status
Optional

This specifies the HTTP status code error


500

INTERNAL SERVER ERROR Error in the request sent

Returns SnmpError of type(s) application/json
{
    "code": "SNMP_COLLECTOR_API_006",
    "reason": "No Snmp collector running, discovery cannot be performed",
    "status": "404 Not Found"
}
string
code
Optional

This code refers to the internal error codes used in the code base.

string
reason
Optional

This specifies the reason for failure.

string
status
Optional

This specifies the HTTP status code error