Upload Snmp Actions
API to upload a seed file containing a single action. Only files of ".xml" type are accepted. To upload an Snmp Action its corresponding mask must exist. If the mask does not exist then an error is thrown.
The name of the current snmp integration
snmp-integation
{
"file": "string"
}
The actual file that is uploaded. This can be a csv, txt, or xml file.
OK Returned uploaded snmpAction
{
"loadFactor": 5,
"capabilityName": "CISCO-IPSLA-STATSTABLE",
"defaultPollingPeriod": 0,
"discoveryPasses": [
{
"capabilityConditionGroup": [
{
"invertResult": false,
"name": "SingleOidContainsSnmpCondition",
"matchValue": "\\\\.1\\\\.3\\\\.6\\\\.1\\\\.4\\\\.1\\\\.9\\\\..*",
"oid": ".1.3.6.1.2.1.1.2.0"
}
]
},
{
"capabilityConditionGroup": [
{
"invertResult": false,
"name": "TableColumnExistsSnmpCondition",
"matchValue": "",
"oid": ".1.3.6.1.4.1.9.9.42.1.3.1.1.5"
},
{
"invertResult": false,
"name": "TableColumnExistsSnmpCondition",
"matchValue": "",
"oid": ".1.3.6.1.4.1.9.9.42.1.3.2.1.1"
}
]
}
]
}
The name of the action/capability
The load this capability will have on a collector
The polling period for all polling groups which use this capability
The list of rules for this action
BAD REQUEST Error in request sent
"SnmpError Object"
This code refers to the internal error codes used in the code base.
This specifies the reason for failure.
This specifies the HTTP status code error
INTERNAL SERVER ERROR Error on the server
"SnmpError Object"
This code refers to the internal error codes used in the code base.
This specifies the reason for failure.
This specifies the HTTP status code error
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{"file:"string"}' https://{api_host}/tcsa/api/v1/snmp/actions/upload