Skip to main content

ovh_config_capabilities

Creates, updates, deletes, gets or lists an ovh_config_capabilities resource.

Overview​

Nameovh_config_capabilities
TypeResource
Idovh.hosting_web.ovh_config_capabilities

Fields​

The following fields are returned by SELECT queries:

Struct which describes version and container image available

NameDatatypeDescription
container_imagearrayContainer image available (wire: containerImage)
versionstringPHP version (5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameList .ovhconfig capabilities. Returns the PHP versions and container images available on the hosting.

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_namestringThe internal name of your hosting (wire: serviceName)

SELECT examples​

List .ovhconfig capabilities. Returns the PHP versions and container images available on the hosting.

SELECT
container_image,
version
FROM ovh.hosting_web.ovh_config_capabilities
WHERE service_name = '{{ service_name }}' -- required
;