Skip to main content

private_database_creation_capabilities

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

Overview​

Nameprivate_database_creation_capabilities
TypeResource
Idovh.hosting_web.private_database_creation_capabilities

Fields​

The following fields are returned by SELECT queries:

Struct which describs quota and available for a specific type of database

NameDatatypeDescription
availableintegerNumber of database left for creation
enginesarrayDatabase software available on this platform
isolationstringTechnology use to isolate differents webhosting accounts (dedicated, local, shared)
quotaobjectSize of data can be used
typestringDatabase offer name (extraSqlPerso, local, privateDatabase, sqlLocal, sqlPerso, sqlPro)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameGet private database creation capabilities. Returns, for each private database offer, the engines, the quota and the number of databases left to create.

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 private database creation capabilities. Returns, for each private database offer, the engines, the quota and the number of databases left to create.

SELECT
available,
engines,
isolation,
quota,
type
FROM ovh.hosting_web.private_database_creation_capabilities
WHERE service_name = '{{ service_name }}' -- required
;