B
ADM API Tutorial
This appendix describes the ADM API and explains how to access and use it. Topics include:
"API Features" on page 59
"Web Services API" on page 61
API Features
The API of ADM allows clients to query its database and export parts of it by means of a web services API.
The following cases are explained in the following sections:
Writing the system status into an XML output file; "Insight_control" on page 59.
Synchronization of CMDB applications with data of ADM; "Asynch API" on page 60.
Population of third party applications with data of ADM.
Dumping of entire database tables and uploading to an FTP server; "Dump API" on page 60.
Access to filtered data by bulk (paginated); "Bulk API" on page 61.
You can divide the API into three sections, where two are dedicated to querying the ADM (Dump and Bulk),
and the third is in charge of tracking those queries (Asynch).
Insight_control
The Insight_control utility writes the system status into an XML output file.
To run Insight_control utility
1
Log in to the appliance as user root.
2
Change the directory by typing:
cd /home/nlayers/Seneca/management/APIs
3
Type the following command to generate a system status output file:
./InSight_control.sh systemstatus --get --output /tmp/systemstatus
N
You can substitute a different file and path for /tmp/systemstatus.
OTE
Service Status
Service status can be:
Running: The service is running.
Disabled: The ADM intentionally stops the service.
Not Running (Purposely Stopped): The service was stopped intentionally, for example, a service was
manually stopped by the adm_control.pl --stop command.
VMware, Inc.
B
59