Skip to main content

database_available_versions

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

Overview​

Namedatabase_available_versions
TypeResource
Idovh.hosting_web.database_available_versions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
defaultstringDatabase default version (10, 10.1, 10.11, 10.2, 10.3, 10.4, 10.5, 10.6, 11, 12, 13, 15, 3.2, 3.4, 4.0, 5.1, 5.5, 5.6, 5.7, 6.0, 7.0, 8.0, 8.4, 9.4, 9.5, 9.6)
listarrayDatabase available version

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, typeList database versions. Returns the available versions of a database type, and the version used when a database is created without one.

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)
typestringType of the database

SELECT examples​

List database versions. Returns the available versions of a database type, and the version used when a database is created without one.

SELECT
default,
list
FROM ovh.hosting_web.database_available_versions
WHERE service_name = '{{ service_name }}' -- required
AND type = '{{ type }}' -- required
;