GET
/
v1
/
log-drains
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.logDrains.getAllLogDrains({
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
    slug: "my-team-url-slug",
  });

  // Handle the result
  console.log(result);
}

run();
[
  {
    "clientId": "<string>",
    "configurationId": "<string>",
    "sources": [
      "build"
    ],
    "environments": [
      "production"
    ],
    "disabledBy": "<string>",
    "firstErrorTimestamp": 123,
    "samplingRate": 123,
    "hideIpAddresses": true,
    "id": "<string>",
    "createdAt": 123,
    "deletedAt": 123,
    "updatedAt": 123,
    "url": "<string>",
    "headers": {},
    "projectIds": [
      "<string>"
    ],
    "name": "<string>",
    "teamId": "<string>",
    "ownerId": "<string>",
    "createdFrom": "self-served",
    "deliveryFormat": "json",
    "status": "enabled",
    "disabledAt": 123,
    "disabledReason": "disabled-by-owner",
    "secret": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

projectId
string
projectIdOrName
string
teamId
string

The Team identifier to perform the request on behalf of.

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

slug
string

The Team slug to perform the request on behalf of.

Example:

"my-team-url-slug"

Response

200
application/json
environments
enum<string>[]
required
Available options:
production,
preview
id
string
required
createdAt
number
required
deletedAt
number | null
required
updatedAt
number
required
url
string
required
name
string
required
ownerId
string
required
deliveryFormat
enum<string>
required
Available options:
json,
ndjson,
syslog,
protobuf
clientId
string
configurationId
string
sources
enum<string>[]
Available options:
build,
edge,
lambda,
static,
external,
firewall
disabledBy
string
firstErrorTimestamp
number
samplingRate
number
hideIpAddresses
boolean
headers
object
projectIds
string[]
teamId
string | null
createdFrom
enum<string>
Available options:
self-served,
integration,
integration
status
enum<string>
Available options:
enabled,
disabled,
errored
disabledAt
number
disabledReason
enum<string>
Available options:
disabled-by-owner,
feature-not-available,
account-plan-downgrade,
disabled-by-admin
secret
string