Deprecation Notice - RunCloud API Beta is deprecated effective 31 May 2019. New API will be released and it's not backward compatible.

Log

List server logs

Arguments
pageoptionalPage number of the resources
searchoptionalSearching string if you wanted to search from list of logs

GET /servers/<server.id>/log

HTTP Request
GET https://manage.runcloud.io/base-api/servers/<server.id>/log
Request
curl -X GET "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/log?page=1" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
Response
{
    "data": [
        {
            "id": "68p2nQ55a3Rq",
            "severity": 1,
            "log": "Generate GIT deployment key for user aisyah",
            "created_at_date": "15 February 2018",
            "created_at_time": "4:39:35 PM"
        },
        {
            "id": "xbKlEMZGleXZ",
            "severity": 2,
            "log": "Deleted cron job this is my first job",
            "created_at_date": "15 February 2018",
            "created_at_time": "1:05:05 PM"
        },
        {
            "id": "QEwaDK5vA791",
            "severity": 2,
            "log": "Rebuilt cron jobs",
            "created_at_date": "15 February 2018",
            "created_at_time": "1:01:39 PM"
        },
        {
            "id": "L0V2LY4nlMd9",
            "severity": 1,
            "log": "Added new Cron Job this is my first job",
            "created_at_date": "15 February 2018",
            "created_at_time": "12:52:20 PM"
        },
        {
            "id": "P9829p7qaJgD",
            "severity": 2,
            "log": "Rebuilt cron jobs",
            "created_at_date": "15 February 2018",
            "created_at_time": "12:41:39 PM"
        },
        {
            "id": "749ly7zRayrg",
            "severity": 2,
            "log": "Deleted Supervisor job my-first-job",
            "created_at_date": "14 February 2018",
            "created_at_time": "1:26:45 PM"
        },
        {
            "id": "Z0Ka4BNWlPGR",
            "severity": 1,
            "log": "Added new Supervisor job my-first-job",
            "created_at_date": "14 February 2018",
            "created_at_time": "1:24:13 PM"
        }
        {
            "id": "9NDA6YOpl3Bd",
            "severity": 1,
            "log": "Rebuilt all Supervisord job",
            "created_at_date": "14 February 2018",
            "created_at_time": "1:06:26 PM"
        }
    ],
    "meta": {
        "pagination": {
            "total": 380,
            "count": 20,
            "per_page": 20,
            "current_page": 1,
            "total_pages": 19,
            "links": {
                "next": "https:\/\/manage.runcloud.io\/base-api\/servers\/yO4VAbX2BkNz\/log?page=2"
            }
        }
    }
}