Skip to main content

deployments

Overview

Namedeployments
TypeResource
Idvercel.deployments.deployments

Fields

NameDatatypeDescription
idstringA string holding the unique ID of the deployment
namestringThe name of the project associated with the deployment at the time that the deployment was created
_aliasarrayA list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation
_aliasAssignedbooleanA boolean that will be true when the aliases from the alias property were assigned successfully
_aliasErrorobjectAn object that will contain a code and a message when the aliasing fails, otherwise the value will be null
_aliasFinalstring
_aliasWarningobject
_autoAssignCustomDomainsboolean
_automaticAliasesarray
_bootedAtnumber
_buildErrorAtnumber
_buildingAtnumber
_canceledAtnumber
_checksConclusionstring
_checksStatestring
_createdAtnumberA number containing the date when the deployment was created in milliseconds
_creatorobjectInformation about the deployment creator
_errorCodestring
_errorLinkstring
_errorMessagestring
_errorStepstring
_gitSource``
_idstringA string holding the unique ID of the deployment
_lambdasarray
_metaobjectAn object containing the deployment's metadata
_namestringThe name of the project associated with the deployment at the time that the deployment was created
_previewCommentsEnabledbooleanWhether or not preview comments are enabled for the deployment
_publicbooleanA boolean representing if the deployment is public or not. By default this is false
_readyStatestringThe state of the deployment depending on the process of deploying, or if it is ready or in an error state
_readySubstatestringThe substate of the deployment when the state is "READY"
_regionsarrayThe regions the deployment exists in
_sourcestringWhere was the deployment created from
_targetstringIf defined, either staging if a staging alias in the format <project>.<team>.now.sh was assigned upon creation, or production if the aliases from alias were assigned
_teamobjectThe team that owns the deployment if any
_typestring
_urlstringA string with the unique URL of the deployment
_userAliasesarrayAn array of domains that were provided by the user when creating the Deployment.
_versionnumberThe platform version that was used to create the deployment.
aliasarrayA list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation
aliasAssignedbooleanA boolean that will be true when the aliases from the alias property were assigned successfully
aliasAssignedAt``
aliasErrorobjectAn object that will contain a code and a message when the aliasing fails, otherwise the value will be null
aliasFinalstring
aliasWarningobject
autoAssignCustomDomainsboolean
automaticAliasesarray
bootedAtnumber
buildobject
buildErrorAtnumber
buildingAtnumber
buildsarray
canceledAtnumber
checksConclusionstring
checksStatestring
connectBuildsEnabledbooleanThe flag saying if Vercel Connect configuration is used for builds
connectConfigurationIdstringThe ID of Vercel Connect configuration used for this deployment
createdAtnumberA number containing the date when the deployment was created in milliseconds
createdInstringThe region where the deployment was first created
creatorobjectInformation about the deployment creator
envarrayThe keys of the environment variables that were assigned during runtime
errorCodestring
errorLinkstring
errorMessagestring
errorStepstring
functionsobjectAn object used to configure your Serverless Functions
gitRepo``
gitSource``
inspectorUrlstringVercel URL to inspect the deployment.
isInConcurrentBuildsQueuebooleanIs the deployment currently queued waiting for a Concurrent Build Slot to be available
lambdasarray
metaobjectAn object containing the deployment's metadata
monorepoManagerstringAn monorepo manager that was used for the deployment
ownerIdstringThe unique ID of the user or team the deployment belongs to
planstringThe pricing plan the deployment was made under
previewCommentsEnabledbooleanWhether or not preview comments are enabled for the deployment
projectIdstringThe ID of the project the deployment is associated with
publicbooleanA boolean representing if the deployment is public or not. By default this is false
readyStatestringThe state of the deployment depending on the process of deploying, or if it is ready or in an error state
readySubstatestringThe substate of the deployment when the state is "READY"
regionsarrayThe regions the deployment exists in
routesarrayA list of routes objects used to rewrite paths to point towards other internal or external paths
sourcestringWhere was the deployment created from
targetstringIf defined, either staging if a staging alias in the format <project>.<team>.now.sh was assigned upon creation, or production if the aliases from alias were assigned
teamobjectThe team that owns the deployment if any
typestring
urlstringA string with the unique URL of the deployment
userAliasesarrayAn array of domains that were provided by the user when creating the Deployment.
versionnumberThe platform version that was used to create the deployment.

Methods

NameAccessible byRequired ParamsDescription
get_deploymentSELECTidOrUrl, teamIdRetrieves information for a deployment either by supplying its ID (id property) or Hostname (url property). Additional details will be included when the authenticated user or team is an owner of the deployment.
get_deploymentsSELECTteamIdList deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the url property will have a value of null.
create_deploymentINSERTteamId, data__branch, data__connection_uris, data__database, data__databases, data__endpoint, data__endpoints, data__name, data__pagination, data__password, data__project, data__projects, data__role, data__rolesCreate a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
delete_deploymentDELETEid, teamIdThis API allows you to delete a deployment, either by supplying its id in the URL or the url of the deployment as a query parameter. You can obtain the ID, for example, by listing all deployments.
_get_deploymentsEXECteamIdList deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the url property will have a value of null.
cancel_deploymentEXECid, teamIdThis endpoint allows you to cancel a deployment which is currently building, by supplying its id in the URL.