Page tree
Skip to end of metadata
Go to start of metadata

API Essentials

API Key Generation

Autoscaling

Backups

Credit

DNS

Firewall Rules

Flex Cloud VM Control

Getting Started with Superb Flex Cloud

IP Addresses

Logs

Network Interfaces

Recipes

SSH Keys

Templates

Test Route

Troubleshooting API Issues

Viewing Activity Logs

Virtual Server Operating Systems

Virtual Servers

VS Disks

GET /logs

Returns a list of all log items

Sections:

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

 GET /logs.json

JSON Response

 [
    {
        "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

 GET /logs.xml

XML Response example

 <?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>
  • No labels