Traverse Web Service API for using Network Discovery

QUESTION:

Provided web services API examples of using Network Discovery

 

RESOLUTION:

 

Create Discovery

curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{
"username":"superuser",
"password":"traverse",
"accountSerialNumber":795662,
"interval":"","intervalUnit":null,"name":"API-discovery",
"scope":"10.20.80.76/255.255.255.255",
"locationName":"Default Location",
"emailAddress":"",
"snmpSharedConfigs":[1486106],
"vmwareSharedConfigs":[],
"includeDeviceTypes":true,
"deviceTypes":[],
"discoverTopology":true,
"updateKnownDevicesTopologyOnly":false,
"useSeedRouter":false,"seedRouterIp":"","maxHops":0,
"runOnce":true,"autoProvision":false
}' http://localhost/api/json/discovery/scheduleDiscovery

 

List Discovery

 

curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{
"username":"superuser",
"password":"traverse",
"searchCriterias":[],
"sorting":{"sortDirection":"ASC","sortField":"sessionName"},
"paging":{"page":0,"limit":50}}' http://localhost/api/json/discovery/getSessions

 

 

Update Discovery

curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{
"username":"superuser",
"password":"traverse",
"serialNumber":1570258,"interval":"0","intervalUnit":null,"name":"RestAPI-discovery","scope":"10.20.80.74/255.255.255.255","locationName":"Default Location","emailAddress":null,"accountSerialNumber":795662,"includeDeviceTypes":false,"deviceTypes":[],"snmpSharedConfigs":[],"vmwareSharedConfigs":[],"discoverTopology":true,"updateKnownDevicesTopologyOnly":false,"useSeedRouter":false,"seedRouterIp":"","maxHops":1,"runOnce":true,"autoProvision":true
}' http://localhost/api/json/discovery/updateDiscovery

 

Note: To create/update Discovery with SNMP/VMware credential, the serial number is required.

To list Shared credential

curl -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{
"username":"superuser",
"password":"traverse",
"showPassword":"false"
}' https://localhost/api/json/admin/monitorConfig/list



 

APPLIES TO:

All versions of Traverse

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Contact us