Show a server log.
Parameters :
| Parameter | Description |
|---|---|
| type | The log type: php, php5.6, php7.0, php7.1, php7.2, php7.3, php7.4, php8.0, php8.1, php8.2, ssh, nginx_access, nginx_error, database or redis. |
GET /api/server/{id}/logs/{type}
Example request :
curl "https://cloud.boxydev.com/api/server/1/logs/ssh" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
Example response :
{
"content": "LOG",
"path": "/var/log/auth.log"
}