Ploi API
Ploi API

Get server

Show a server in your account

GET api/servers/{id}

Required scopes:

Read servers

Example request

curl -X GET "https://ploi.io/api/servers/{id}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "id": 1,
        "status": "active",
        "type": "server",
        "name": "awesome-server",
        "ip_address": "127.0.0.1",
        "php_version": 7.2,
        "mysql_version": 5.7,
        "sites_count": 4,
        "monitoring": true,
        "created_at": "2019-01-01 09:00:00"
    }
}