Skip to main content

vcs_webhooks

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

Overview​

Namevcs_webhooks
TypeResource
Idovh.hosting_web.vcs_webhooks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
pushstringWebhook URL for push events

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpath, service_name, vcsReturns the webhook URL to call on push events to deploy a website. Filter it by hosting path and VCS platform.

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"}})
pathstringFilter on hosting path
service_namestringService name (wire: serviceName)
vcsstringFilter on VCS platform

SELECT examples​

Returns the webhook URL to call on push events to deploy a website. Filter it by hosting path and VCS platform.

SELECT
push
FROM ovh.hosting_web.vcs_webhooks
WHERE path = '{{ path }}' -- required
AND service_name = '{{ service_name }}' -- required
AND vcs = '{{ vcs }}' -- required
;