Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idvercel.aliases.deployments

Fields

The following fields are returned by SELECT queries:

The list of aliases assigned to the deployment

NameDatatypeDescription
aliasstringThe alias name, it could be a .vercel.app subdomain or a custom domain (example: my-alias.vercel.app)
createdstring (date-time)The date when the alias was created (example: 2017-04-26T23:00:34.232Z)
protectionBypassobjectThe protection bypass for the alias
redirectstringTarget destination domain for redirect when the alias is a redirect
uidstringThe unique identifier of the alias (example: 2WjyKQmM8ZnGcJsPWMrHRHrE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_deployment_aliasesselectid, teamIdRetrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
_list_deployment_aliasesexecid, teamIdRetrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
assign_aliasexecid, teamIdCreates a new alias for the deployment with the given deployment ID. The authenticated user or team must own this deployment. If the desired alias is already assigned to another deployment, then it will be removed from the old deployment and assigned to the new one.

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
idThe ID of the deployment the aliases should be listed for
teamIdstringThe Team identifier or slug to perform the request on behalf of.

SELECT examples

Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.

SELECT
alias,
created,
protectionBypass,
redirect,
uid
FROM vercel.aliases.deployments
WHERE id = '{{ id }}' -- required
AND teamId = '{{ teamId }}' -- required
;

Lifecycle Methods

Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.

EXEC vercel.aliases.deployments._list_deployment_aliases 
@id='{{ id }}' --required,
@teamId='{{ teamId }}' --required
;