Skip to main content

aliases

Overview

Namealiases
TypeResource
Idvercel.aliases.aliases

Fields

NameDatatypeDescription
aliasstringThe alias name, it could be a .vercel.app subdomain or a custom domain
createdstringThe date when the alias was created
createdAtnumberThe date when the alias was created in milliseconds since the UNIX epoch
creatorobjectInformation of the user who created the alias
deletedAtnumberThe date when the alias was deleted in milliseconds since the UNIX epoch
deploymentobjectA map with the deployment ID, URL and metadata
deploymentIdstringThe deployment ID
projectIdstringThe unique identifier of the project
protectionBypassobjectThe protection bypass for the alias
redirectstringTarget destination domain for redirect when the alias is a redirect
redirectStatusCodenumberStatus code to be used on redirect
uidstringThe unique identifier of the alias
updatedAtnumberThe date when the alias was updated in milliseconds since the UNIX epoch

Methods

NameAccessible byRequired ParamsDescription
get_aliasSELECTidOrAlias, teamIdRetrieves an Alias for the given host name or alias ID.
list_aliasesSELECTteamIdRetrieves a list of aliases for the authenticated User or Team. When domain is provided, only aliases for that domain will be returned. When projectId is provided, it will only return the given project aliases.
delete_aliasDELETEaliasId, teamIdDelete an Alias with the specified ID.
_list_aliasesEXECteamIdRetrieves a list of aliases for the authenticated User or Team. When domain is provided, only aliases for that domain will be returned. When projectId is provided, it will only return the given project aliases.