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/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
"SnmpError Object"
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
"SnmpError Object"
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


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/tcsa/api/v1/snmp/agents/poll