Skip to main content

website_creation_capabilities

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

Overview​

Namewebsite_creation_capabilities
TypeResource
Idovh.hosting_web.website_creation_capabilities

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
allowed_vcs_websitesintegerNumber of websites deployed from a Git repository allowed by your hosting offer, -1 meaning unlimited (wire: allowedVcsWebsites)
allowed_websitesintegerNumber of websites allowed by your hosting offer, Git-deployed or not, -1 meaning unlimited (wire: allowedWebsites)
existing_vcs_websitesintegerNumber of existing websites deployed from a Git repository on your hosting (wire: existingVcsWebsites)
existing_websitesintegerNumber of existing websites on your hosting, Git-deployed or not (wire: existingWebsites)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the number of existing websites and the number allowed by the offer, then the same for the websites deployed from a Git repository, -1 meaning unlimited.

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"}})
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the number of existing websites and the number allowed by the offer, then the same for the websites deployed from a Git repository, -1 meaning unlimited.

SELECT
allowed_vcs_websites,
allowed_websites,
existing_vcs_websites,
existing_websites
FROM ovh.hosting_web.website_creation_capabilities
WHERE service_name = '{{ service_name }}' -- required
;