TypeScript
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": {} } ] }
Get provisioning and status logs for a server
Region identifier
Server identifier
Filter by log level
info
warning
error
Maximum results
Server logs
true
Show child attributes
Was this page helpful?