Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

GET /logs

Returns a list of all log items

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

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)

JSON Request example

Code Block
languagebash
themeRDark
 GET /logs.json

JSON Response

Code Block
themeRDark
 [
    {
        "log_item": {
            "action": "StartupVirtualServer",
            "created_at": "2015-08-27T22:16:52+00:00",
            "id": 27857,
            "status": "Complete",
            "target_id": 27492,
            "target_type": "Transaction",
            "updated_at": "2015-08-27T22:16:52+00:00"
        }
    },
    {
        "log_item": {
            "action": "ConfigureOperatingSystem",
            "created_at": "2015-08-27T22:16:52+00:00",
            "id": 27856,
            "status": "Complete",
            "target_id": 27491,
            "target_type": "Transaction",
            "updated_at": "2015-08-27T22:16:52+00:00"
        }
    },
    {
        "log_item": {
            "action": "BuildDisk",
            "created_at": "2015-08-27T22:16:52+00:00",
            "id": 27854,
            "status": "Complete",
            "target_id": 27489,
            "target_type": "Transaction",
            "updated_at": "2015-08-27T22:16:52+00:00"
        }
    }
]

XML Request example

Code Block
languagebash
themeRDark
 GET /logs.xml

XML Response example

Code Block
languagexml
themeRDark
 <?xml version="1.0" encoding="UTF-8"?>
<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>RebootVirtualMachine</action>
</log_item>
...
<log_item></log_item>
...
</log_items>