Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idvercel.checks.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
namestring
blockingboolean
completedAtnumber
conclusionstring
createdAtnumber
deploymentIdstring
detailsUrlstring
externalIdstring
integrationIdstring
outputobject
pathstring
rerequestableboolean
startedAtnumber
statusstring
updatedAtnumber

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_checkselectdeploymentId, checkId, teamIdReturn a detailed response for a single check.
get_all_checksselectdeploymentId, teamIdList all of the checks created for a deployment.
create_checkinsertdeploymentId, teamId, data__name, data__blockingCreates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
_get_all_checksexecdeploymentId, teamIdList all of the checks created for a deployment.
update_checkexecdeploymentId, checkId, teamIdUpdate an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
rerequest_checkexecdeploymentId, checkId, teamIdRerequest a selected check that has failed.

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
checkIdstringThe check to rerun
deploymentIdstringThe deployment to rerun the check for.
teamIdstringThe Team identifier or slug to perform the request on behalf of.

SELECT examples

Return a detailed response for a single check.

SELECT
id,
name,
blocking,
completedAt,
conclusion,
createdAt,
deploymentId,
detailsUrl,
externalId,
integrationId,
output,
path,
rerequestable,
startedAt,
status,
updatedAt
FROM vercel.checks.deployments
WHERE deploymentId = '{{ deploymentId }}' -- required
AND checkId = '{{ checkId }}' -- required
AND teamId = '{{ teamId }}' -- required
;

INSERT examples

Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.

INSERT INTO vercel.checks.deployments (
data__name,
data__path,
data__blocking,
data__detailsUrl,
data__externalId,
data__rerequestable,
deploymentId,
teamId
)
SELECT
'{{ name }}' /* required */,
'{{ path }}',
{{ blocking }} /* required */,
'{{ detailsUrl }}',
'{{ externalId }}',
{{ rerequestable }},
'{{ deploymentId }}',
'{{ teamId }}'
RETURNING
id,
name,
blocking,
completedAt,
conclusion,
createdAt,
deploymentId,
detailsUrl,
externalId,
integrationId,
output,
path,
rerequestable,
startedAt,
status,
updatedAt
;

Lifecycle Methods

List all of the checks created for a deployment.

EXEC vercel.checks.deployments._get_all_checks 
@deploymentId='{{ deploymentId }}' --required,
@teamId='{{ teamId }}' --required
;