Endpoints
- access-groups
- artifacts
- checks
- projects
- deployments
- domains
- dns
- API Reference
- logDrains
- edge-config
- user
- marketplace
- integrations
- authentication
- logs
- projectMembers
- environment
- security
- teams
- webhooks
- aliases
- certs
API Reference
Get projects logs presets
GET
/
projects
/
{projectId}
/
logs-presets
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.getProjectsProjectIdLogsPresets({
projectId: "<id>",
});
// Handle the result
console.log(result);
}
run();
[
{
"id": "ABCDEFG000011111",
"data": {
"query": "<string>",
"creatorId": "<string>",
"title": "<string>",
"groupId": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"createdAt": 123
}
}
]
Path Parameters
Response
200
application/json
The response is of type object[]
.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.getProjectsProjectIdLogsPresets({
projectId: "<id>",
});
// Handle the result
console.log(result);
}
run();
[
{
"id": "ABCDEFG000011111",
"data": {
"query": "<string>",
"creatorId": "<string>",
"title": "<string>",
"groupId": "<string>",
"ownerId": "<string>",
"projectId": "<string>",
"createdAt": 123
}
}
]