Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
3.17. Example: Check System Events
The
start
action for the vm1
creates several entries in the events
collection. This example lists the events collection and identifies events specific to the API starting a virtual machine.
Example 3.20. List the events collection
Request:
GET /api/events HTTP/1.1 Accept: application/xml
GET /api/events HTTP/1.1
Accept: application/xml
cURL command:
curl -X GET -H "Accept: application/xml" -u [USER:PASS] \ --cacert [CERT] \ https://[RHEVM Host]:443/api/events
# curl -X GET -H "Accept: application/xml" -u [USER:PASS] \
--cacert [CERT] \
https://[RHEVM Host]:443/api/events
Result:
The following events occur:
id="101"
- The API authenticates with theadmin
user's user name and password.id="102"
- The API, acting as theadmin
user, startsvm1
on thehypervisor
host.id="103"
- The API logs out of theadmin
user account.