ServerMania logo

Get List of Log Items

To get the list of log items, use the following request:

GET /logs.xml
GET /logs.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/logs.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/logs.json

XML Output Example

<log_items type="array">
<log_item>
<created_at type="datetime">2011-07-25T15:26:44+07:00</created_at>
<target_id type="integer">22386</target_id>
<updated_at type="datetime">2011-07-25T15:26:44+07:00</updated_at>
<id type="integer">22903</id>
<target_type>Transaction</target_type>
<status>Complete</status>
<action>ResizeVSWithoutReboot</action>
<resource_diff_id type="integer">12</resource_diff_id>
</log_item>
...
<log_item></log_item>
...
</log_items> 

Where:

created_at – time in the [YYYY][MM][DD]T[hh][mm][ss]Z format

updated_at – time in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id – log item ID

target_id – ID of the transaction (item in the transaction list. See Get List of Transactions for details)

target_type – type of log item (either Transaction or Alert).

action - the action name

status - the action status (Complete, Warn, Pending, or Failed)

resource_diff_id - the ID of the resource difference that contains the changes to the resources that have been made during the transaction. On how to view resource differences refer to Get Resource Difference Details.


Page History

v. 5.3

  • added the resource_diff_id parameter