Skip to main content

deployment_flags

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

Overview

Namedeployment_flags
TypeResource
Idvercel.feature_flags.deployment_flags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
flagsarray
statusobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_idteam_id, slugRetrieve 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.

NameDatatypeDescription
deployment_idstring
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

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 }}'
;