Skip to content

Get node logs

GET
/api/v1/logs/{type}/{env}/{uuid}
curl --request GET \
--url https://osctrl.net/api/v1/logs/example/example/example \
--header 'Authorization: <Authorization>'

Returns recent status or result logs for a node.

env
required
string

Environment name or UUID

type
required
string

Log type: status or result

uuid
required
string

Node UUID

limit
integer

Maximum number of log rows

since
string

RFC3339 lower bound

OK

Media typeapplication/json
object
env
string
items
Array<object>
object
key
additional properties
limit
integer
since
string
type
string
uuid
string
Examplegenerated
{
"env": "example",
"items": [
{
"additionalProperty": "example"
}
],
"limit": 1,
"since": "example",
"type": "example",
"uuid": "example"
}

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Not found

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Conflict

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Too many requests

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Internal server error

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Service unavailable

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}