deployment_flags
Creates, updates, deletes, gets or lists a deployment_flags resource.
Overview
| Name | deployment_flags |
| Type | Resource |
| Id | vercel.feature_flags.deployment_flags |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
flags | array | |
status | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | deployment_id | team_id, slug | Retrieve the feature flags of a deployment. |
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 |
|---|---|---|
deployment_id | string | |
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
- get
Retrieve the feature flags of a deployment.
SELECT
flags,
status
FROM vercel.feature_flags.deployment_flags
WHERE deployment_id = '{{ deployment_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;