Skip to main content

configuration_projects

Creates, updates, deletes, gets or lists a configuration_projects resource.

Overview

Nameconfiguration_projects
TypeResource
Idvercel.observability.configuration_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
namestring
disabled_atnumber (wire: disabledAt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectteam_id, slugLists the projects that are currently configured as disabled for Observability Plus on a team.
updateupdateproject_id_or_name, disabledteam_id, slugUpdates whether Observability Plus is disabled for a single project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
project_id_or_namestringThe ID or name of the project to update
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Lists the projects that are currently configured as disabled for Observability Plus on a team.

SELECT
id,
name,
disabled_at
FROM vercel.observability.configuration_projects
WHERE team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

UPDATE examples

Updates whether Observability Plus is disabled for a single project.

UPDATE vercel.observability.configuration_projects
SET
disabled = {{ disabled }}
WHERE
project_id_or_name = '{{ project_id_or_name }}' --required
AND disabled = {{ disabled }} --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
id,
disabled_at;