The virtual automation API allows you to deploy event collection for virtual machines using CA User Activity Reporting Module. You can use the API to trigger a preset collection profile, which contains all the information necessary to provision event collection.
You can also use the API to set access credentials for event collection, identify available resources, and other related functions.
To use the virtual API, you invoke HTTP methods against resources, each of which has its own URI. The API uses the following HTTP methods:
Provide a valid CA User Activity Reporting Module user and password, or certificate name and password, on each API call. Do this using HTTP Basic Authentication (the Authorization header).
For example, you could use the available methods to deploy and control event collection this way:
This method returns a URI for the new resource.
Some resources support multiple HTTP methods, others support only one. The documentation for each identifies the supported methods.
All resource URIs for the virtual API have a defined structure, as illustrated in the following example:
https://hostname:8443/rest/am/1/collectionprofiles
The first part of the URI identifies the target server. Replace "hostname" with the name of the CA User Activity Reporting Module server you want to contact.
The second part of the URI, "/rest/am/1" is common to all the resources on that server. The “1” specifies the version of the API you want to access.
The third element defines the resource you want to access, in this case “/collectionprofiles”.
You can return data or send data in either XML or JSON format. To specify data return format, include values in the HTTP Accept header to specify which you format you want:
To specify sent the format of data you send using PUT or POST, use the HTTP Content-Type header:
Note: All API examples in this guide are shown using the cURL command line HTTP client.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|