Ga naar inhoud

What the data plane logs

GET
/api/v1/settings/request-log
curl --request GET \
--url https://example.com/api/v1/settings/request-log \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E

Which data requests the data plane logs, and from how many milliseconds a request counts as slow.

OK.

Media typeapplication/json

Which data requests the data plane logs, and from when a request is slow.

object
level
required

off | errors | warnings | all

string
slow_ms
required

A request that takes longer is logged as a warning; 10 to 60000.

integer format: int64

Example generated

{
"level": "example",
"slow_ms": 1
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}