Skip to main content

ovh_config_recommended_values

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

Overview​

Nameovh_config_recommended_values
TypeResource
Idovh.hosting_web.ovh_config_recommended_values

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
engine_namestringEngine name (php, phpcgi) (wire: engineName)
containerstringContainer to run this website (jessie.i386, legacy, stable, stable64, testing)
engine_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) (wire: engineVersion)
environmentstringEnvironment configuration (development, production)
http_firewallstringConfiguration for http firewall (none, security) (wire: httpFirewall)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet recommended .ovhconfig values. Returns the recommended engine, version, container, environment and HTTP firewall for the .ovhconfig file.

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​

Get recommended .ovhconfig values. Returns the recommended engine, version, container, environment and HTTP firewall for the .ovhconfig file.

SELECT
engine_name,
container,
engine_version,
environment,
http_firewall
FROM ovh.hosting_web.ovh_config_recommended_values
WHERE service_name = '{{ service_name }}' -- required
;