Skip to main content

website_deployments

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

Overview​

Namewebsite_deployments
TypeResource
Idovh.hosting_web.website_deployments

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerDeployment numeric identifier
vcs_commit_idstringIdentifier of the last commit after deployment (wire: vcsCommitId)
website_idintegerWebsite numeric identifier (wire: websiteId)
datestring (date-time)Date of the deployment
resetbooleanWhether a reset was requested before deploying
sourcestringSource which triggered the deployment
statusstringCurrent status of the deployment (doing, failed, successful)
vcs_branchstringWhich branch of the repository is deployed (wire: vcsBranch)
vcs_commit_messagestringMessage of the last commit after deployment (wire: vcsCommitMessage)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_id, id, service_nameReturns the status, source, branch and last commit of the deployment.
listselectid, service_namex_pagination_modeReturns the IDs of the deployments of the website.

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
deployment_idintegerDeployment ID (wire: deploymentId)
idintegerId
service_namestringService name (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the status, source, branch and last commit of the deployment.

SELECT
id,
vcs_commit_id,
website_id,
date,
reset,
source,
status,
vcs_branch,
vcs_commit_message
FROM ovh.hosting_web.website_deployments
WHERE deployment_id = '{{ deployment_id }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;