Skip to main content

availabilities

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

Overview​

Nameavailabilities
TypeResource
Idovh.cloud_database.availabilities

Fields​

The following fields are returned by SELECT queries:

Availability of databases engines on cloud projects

NameDatatypeDescription
backupstringDefines the type of backup. DEPRECATED: use backups.enable (automatic, manual, none, pitr, snapshot)
backup_retention_daysintegerBackup retention time of the availability in days. DEPRECATED: use backups.retentionDays (wire: backupRetentionDays)
backupsobjectDefines backups strategy for the availability
categorystringCategory of the engine (analysis, operational, streaming)
defaultbooleanWhether this availability can be used by default
end_of_lifestring (date)End of life of the product. DEPRECATED: use lifecycle.endOfLife (wire: endOfLife)
enginestringDatabase engine name
flavorstringFlavor name. DEPRECATED: use specifications.flavor
lifecycleobjectDefines the lifecycle of the availability
max_disk_sizeintegerMaximum possible disk size in GB. DEPRECATED: use specifications.storage.maximum (wire: maxDiskSize)
max_node_numberintegerMaximum nodes of the cluster. DEPRECATED: use specifications.nodes.maximum (wire: maxNodeNumber)
min_disk_sizeintegerMinimum possible disk size in GB. DEPRECATED: use specifications.storage.minimum (wire: minDiskSize)
min_node_numberintegerMinimum nodes of the cluster. DEPRECATED: use specifications.nodes.minimum (wire: minNodeNumber)
networkstringType of network. DEPRECATED: use specifications.network (private, public)
planstringPlan name
plan_codestringBilling plan code (wire: planCode)
plan_code_storagestringBilling plan code for storage (wire: planCodeStorage)
plan_codesobjectSplit pricing plan codes (wire: planCodes)
regionstringRegion name
specificationsobjectDefines the technical specifications of the availability
start_datestring (date)Date of the release of the product. DEPRECATED: use lifecycle.startDate (wire: startDate)
statusstringStatus of the availability. DEPRECATED: use lifecycle.status (BETA, DEPRECATED, END_OF_LIFE, END_OF_SALE, STABLE, UNAVAILABLE)
step_disk_sizeintegerFlex disk size step in GB. DEPRECATED: use specifications.storage.step (wire: stepDiskSize)
upstream_end_of_lifestring (date)End of life of the upstream product. DEPRECATED: use lifecycle (wire: upstreamEndOfLife)
versionstringVersion name

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameaction, cluster_id, targetGet database engines availability

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 Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
actionstringType of action on which restrict the availabilities
cluster_idstring (uuid)Cluster ID on which restrict the availabilities (wire: clusterId)
targetstringType of target on which restrict the availabilities

SELECT examples​

Get database engines availability

SELECT
backup,
backup_retention_days,
backups,
category,
default,
end_of_life,
engine,
flavor,
lifecycle,
max_disk_size,
max_node_number,
min_disk_size,
min_node_number,
network,
plan,
plan_code,
plan_code_storage,
plan_codes,
region,
specifications,
start_date,
status,
step_disk_size,
upstream_end_of_life,
version
FROM ovh.cloud_database.availabilities
WHERE service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND action = '{{ action }}'
AND cluster_id = '{{ cluster_id }}'
AND target = '{{ target }}'
;