configuration_projects
Creates, updates, deletes, gets or lists a configuration_projects resource.
Overview
| Name | configuration_projects |
| Type | Resource |
| Id | vercel.observability.configuration_projects |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
disabled_at | number | (wire: disabledAt) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | team_id, slug | Lists the projects that are currently configured as disabled for Observability Plus on a team. | |
update | update | project_id_or_name, disabled | team_id, slug | Updates 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.
| Name | Datatype | Description |
|---|---|---|
project_id_or_name | string | The ID or name of the project to update |
slug | string | The Team slug to perform the request on behalf of. |
team_id | string | The Team identifier to perform the request on behalf of. (wire: teamId) |
SELECT examples
- list
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
- update
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;