Get All Snmp Agents

Get All Snmp Agents

API to get a list of agents.

Request
URI
GET
https://{api_host}/tcsa.host.com/tcsa/api/v1/snmp/agents
COPY
Query Parameters
integer
offset
Optional

Requested index for start of resources to be provided in response

integer
limit
Optional

Requested number of resources to be provided in response

string
snmpIntegration
Optional

The name of the current snmp integration

snmpIntegration example
snmp-integration

Authentication
This operation uses the following authentication methods.
Responses
200

OK Returned list of all snmp agents

Returns Array of SnmpAgentResponse of type(s) application/json
[
    {
        "devType": "Router",
        "collectorNameList": [
            "checking-Direct.Creation"
        ],
        "agentId": "10.106.232.55:161",
        "doNotUseGetBulkRequests": false,
        "snmpVersion": "v2c",
        "ipAddress": "10.106.232.55",
        "v1TableRowPolling": false,
        "pollingPeriod": 0,
        "capabilitiesWithPollingPeriod": [
            {
                "capabilityName": "CISCO-MEMORY-OLD",
                "pollingPeriod": 0
            },
            {
                "capabilityName": "GENERIC-SYSUPTIME",
                "pollingPeriod": 0
            },
            {
                "capabilityName": "GENERIC-INTERFACES",
                "pollingPeriod": 0
            }
        ],
        "useV3ContextEnginedId": false,
        "discoveryStarted": false,
        "doNotUseCapabilityList": [],
        "maxBulkSize": 50,
        "snmpCommunityOrUserV3Name": "{FB4571C1E38F7FEE40E3768BE0277A7365563DD06438D934B63FEF7865490E8EA3E6E47C0FC874926F8DC4D15FA98696}",
        "transportProtocol": "udp",
        "name": "Agent45",
        "snmpPort": 161,
        "snmpTimeout": 3000,
        "onFailTryWith": "v1",
        "snmpNumberOfRetries": 2,
        "snmpV3Constraint": true,
        "useV3ContextName": false
    }
]

400

BAD REQUEST Error in 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 on the server

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