Skip to main content
GET
/
v1
/
regions
/
{region}
/
infrastructure
/
servers
/
{id}
/
logs
Get server logs
const options = {method: 'GET'};

fetch('https://api.example.com/v1/regions/{region}/infrastructure/servers/{id}/logs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "level": "info",
      "source": "<string>",
      "message": "<string>",
      "metadata": {}
    }
  ]
}

Path Parameters

region
string
required

Region identifier

id
string
required

Server identifier

Query Parameters

level
enum<string>

Filter by log level

Available options:
info,
warning,
error
limit
number
default:100

Maximum results

Response

200 - application/json

Server logs

success
enum<boolean>
Available options:
true
data
object[]