API Documentation

A documentation for developer

Log

Table of Contents:

GET List server logs

HTTP Request

GET https://manage.runcloud.io/base-api/servers/<server.id>/log

Arguments

Parameters Required Description
page NO Page number of the resources
search NO Searching string if you wanted to search from list of logs

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"
            }
        }
    }
}