Discover Capabilities
This API performs two functions:
- Discovers capabilities on all agents.
- Distributes agents to collectors and generates polling groups based on the capabilities discovered. Note: A call to this API might re-distribute an agent to another collector. In order to avoid this, a specific collector can be provided while adding the agent in the "collectorName" field. In doing so the agent will always be assigned to the same collector.
Request
URI
POST
https://{api_host}/tcsa/api/v1/snmp/agents/discover
COPY
Query Parameters
string
snmpIntegration
Optional
The name of the current snmp integration
snmpIntegration example
snmp-integration
Responses
200
OK Retruned list of all the generated polling groups
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 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 on the server
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>' https://{api_host}/tcsa/api/v1/snmp/agents/discover
Snmp Operations
POST
Initialize Snmp Collector
PUT
Update Snmp Collector
GET
Get All Snmp Collectors
DELETE
Delete Snmp Collector
POST
Send Collector Configurations
GET
Retrieve Snmp Collectors
POST
Poll Collectors For Affected Polling Groups
POST
Update Snmp Integration
GET
Get Entire Snmp Integration
POST
Add Snmp Agent
PUT
Update Snmp Agent
GET
Get All Snmp Agents
DELETE
Delete Snmp Agent
GET
Retrieve Snmp Agent
POST
Poll Agents For Affected Polling Groups
POST
Discover Capabilities
GET
Download Snmp Agents
POST
Cancel Discovery
POST
Upload Snmp Agents
POST
Upload Snmp Mask
POST
Add Snmp Mask
PUT
Update Snmp Mask
GET
Get Snmp Masks
DELETE
Delete Snmp Mask
GET
Retrieve Snmp Mask
POST
Poll Masks For Affected Polling Groups
POST
Upload Snmp Translations
GET
Get Snmp Translations
POST
Upload Mib
GET
Get All Mib Files
POST
Upload Snmp Actions
GET
Get Snmp Actions
GET
Retrieve Snmp Action
POST
Add Polling Group
PUT
Update Polling Group
GET
Get Polling Groups
DELETE
Delete Polling Groups
GET
Retrieve Polling Group