API Calls
API Calls
API Calls
RESTful API for vManage NMS
The vManage NMS supports a RESTful (Representational State
Transfer) API, which provides calls for retrieving real-time and static
information about the Viptela overlay network and the devices in the
network and for uploading device configuration templates and other
configuration-related information.
Using the RESTful API, you can design a custom portal for interacting
with the vManage NMS.
API calls are provided for the following categories of operations:
•Certificate Management
•Configuration
•Device and Device Inventory
•Monitoring
•Real-Time Monitoring
•Troubleshooting Tools
Using the vManage REST APIs
The Viptela software provides a REST API, which is a programmatic interface
for controlling, configuring, and monitoring the Viptela devices in an overlay
network. You access the REST API through the vManage web server.
A REST API is a web service API that adheres to the REST, or
Representational State Transfer, architecture. The REST architecture
uses a stateless, client–server, cacheable communications protocol. The
Viptela vManage NMS web server uses HTTP and its secure counterpart,
HTTPS, as the communications protocol. REST applications communicate over
HTTP or HTTPS using standard HTTP methods to make calls between network
devices. These standard HTTP methods include:
The vManage REST API library and documentation are bundled with and installed on the
vManage web application software. To access the API documentation from a web
browser, use this URL:
https://ip-address:port/apidocs
Requested Information API Call
List all network devices dataservice/device
Health status of hardware device dataservice/device/hardware/environment?
components, such as CPU, memory, fan, deviceId=system-ip-address
and power
Status of a device's transport interfaces dataservice/device/interface?
deviceId=system-ip-address&port-
type=transport
Interface statistics, errors, and packet dataservice/device/interface?
drops deviceId=system-ip-address
dataservice/device/control/connections?
DTLS/TLS control connection status
deviceId=system-ip-address
dataservice/device/omp/peers?
OMP peering
deviceId=system-ip-address
dataservice/device/bgp/neighbors?
BGP peering on the service side
deviceId=system-ip-address
API calls for real-time monitoring of vBond orchestrator
information:
• Connections
• Connections History
• Local Properties
• Summary
• Valid vEdge Routers
• Valid vSmart Controllers
Connections
List the Viptela devices that have active DTLS connections to the vBond
orchestrator (on vBond orchestrators only).
connections URL:
https://vmanage-ip-address/dataservice/device/orchestrator/connections?
deviceId=deviceId
https://198.18.1.10/dataservice/device/orchestrator/connections?deviceI
d=11.11.11.11
Connections History
List the history of connections and connection attempts made by
the vBond orchestrator (on vBond orchestrators only).
URL:
https://vmanage-ip-address/dataservice/device/orchestrator/conn
ectionshistory?deviceId=deviceId
Local Properties
Display the basic configuration parameters of a vBond orchestrator
(on vBond orchestrators only).
URL:
https://vmanage-ip-address/dataservice/device/orchestrator/localpr
operties?deviceId=deviceId
Summary
Display a count of the vEdge routers, vManage Network
Management Systems (NMSs), and vSmart controllers in the
overlay network (on vBond orchestrators only). For vBond
orchestrators running on virtual machines (VMs) that have more
than one core, this API call shows the number of devices that
each vdaemon process is handling.
URL:
https://vmanage-ip-address/dataservice/device/orchestrator/sum
mary?deviceId=deviceId
Valid vEdge Routers List the chassis numbers of the valid vEdge
routers in the overlay network (on vBond orchestrators only).
URL:
https://vmanage-ip-address/dataservice/device/orchestrator/valid
vedges?deviceId=deviceId
Valid vSmart Controllers List the serial numbers of the valid
vSmart controllers in the overlay network (on vBond
orchestrators only).
URL:
https://vmanage-ip-address/dataservice/device/orchestrator/valid
smarts?deviceId=deviceId
OSPF API calls for real-time monitoring of OSPF information:
• Database
• Database Summary
• External Database
• Interface
• Neighbor
• Process
• Routes
CLI Equivalent: show ospf database
URL:
https://vmanage-ip-address/dataservice/device/ospf/database?deviceId=deviceId
URL: https://vmanage-ip-address/dataservice/device/ospf/databaseexternal?
deviceId=deviceId
URL: https://vmanage-ip-address/dataservice/device/ospf/neighbor?
deviceId=deviceId
URL:
https://vmanage-ip-address/dataservice/device/ospf/process?deviceId=d
eviceId
URL: https://vmanage-ip-address/dataservice/device/ospf/routes?
deviceId=deviceId
Alarms
Display information about cleared and currently active alarms.
Alarms Using GET Method
If the query size is less than 2048 characters, use the GET method.
URL:
https://vmanage-ip-address/dataservice/alarms?query=query
https://198.18.1.10/dataservice/alarms