-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Gluster Storage
3.10. Example: Check System Events
The
login
action for admin
creates entries in the events
collection. This example lists the events collection and identifies events specific to log in of the admin.
Example 3.10. List the events collection
GET /api/events HTTP/1.1 Accept: application/xml
cURL command:
curl -X GET -H "Accept: application/xml" -u [USER:PASS] --cacert [CERT] https://[RHSC Host]/api/events
The API returns a representation that includes the following:
<events> <event href="/api/events/54" id="54"> <description>User admin@internal logged in.</description> <code>30</code> <severity>normal</severity> <time>2013-11-27T17:48:01.264+05:30</time> <user href="/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc" id="fdfc627c-d875-11e0-90f0-83df133b58cc"/> <origin>oVirt</origin> <custom_id>-1</custom_id> <flood_rate>30</flood_rate> </event> </events>
The following event occurs:
id="54"
- The API authenticates with theadmin
user's username and password.id="192"
- The API, acting as theadmin
user, startsVolume Data
on theDefault
clusterid="193"
- The API logs out of theadmin
user account.
22632%2C+Console+Developer+Guide-322-09-2014+17%3A11%3A35Report a bug