database_available_versions
Creates, updates, deletes, gets or lists a database_available_versions resource.
Overview​
| Name | database_available_versions |
| Type | Resource |
| Id | ovh.hosting_web.database_available_versions |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
default | string | Database 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) |
list | array | Database available version |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name, type | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_name | string | The internal name of your hosting (wire: serviceName) |
type | string | Type of the database |
SELECT examples​
- get
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
;