logDrains
Creates a Configurable Log Drain
Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
POST
Authorizations
Default authentication mechanism
Query Parameters
The Team identifier to perform the request on behalf of.
Example:
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
The Team slug to perform the request on behalf of.
Example:
"my-team-url-slug"
Body
application/json
The delivery log format
Available options:
json
, ndjson
Example:
"json"
The log drain url
Available options:
static
, lambda
, build
, edge
, external
, firewall
Headers to be sent together with the request
Available options:
preview
, production
Custom secret of log drain
The sampling rate for this log drain. It should be a percentage rate between 0 and 100. With max 2 decimal points
Required range:
0.01 <= x <= 1
Must be a multiple of 0.01
The custom name of this log drain.
Response
200
application/json
Available options:
production
, preview
Available options:
json
, ndjson
, syslog
, protobuf
The secret to validate the log-drain payload
Available options:
build
, edge
, lambda
, static
, external
, firewall
Available options:
self-served
, integration
Available options:
enabled
, disabled
, errored
Available options:
disabled-by-owner
, feature-not-available
, account-plan-downgrade
, disabled-by-admin