このコンテンツは選択した言語では利用できません。

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
Copy to Clipboard Toggle word wrap
cURL command:
curl -X GET -H "Accept: application/xml" -u [USER:PASS] --cacert [CERT] https://[RHGSC 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>
Copy to Clipboard Toggle word wrap
The following event occurs:
  • id="54" - The API authenticates with the admin user's username and password.
  • id="192" - The API, acting as the admin user, starts Volume Data on the Default cluster
  • id="193" - The API logs out of the admin user account.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat