Skip to main content

region_loadbalancing_health_monitors

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

Overview​

Nameregion_loadbalancing_health_monitors
TypeResource
Idovh.cloud_network.region_loadbalancing_health_monitors

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)The ID of the pool
namestringThe name of the resource
pool_idstring (uuid)The ID of the pool (wire: poolId)
delayintegerDuration between sending probes to members, in seconds
http_configurationobjectMonitor HTTP configuration (wire: httpConfiguration)
max_retriesintegerNumber of successful checks before changing the operating status of the member to ONLINE (wire: maxRetries)
max_retries_downintegerNumber of allowed check failures before changing the operating status of the member to ERROR (wire: maxRetriesDown)
monitor_typestringType of the monitor (http, https, ping, sctp, tcp, tls-hello, udp-connect) (wire: monitorType)
operating_statusstringThe operating status of the resource (degraded, draining, error, noMonitor, offline, online) (wire: operatingStatus)
provisioning_statusstringThe provisioning status of the resource (active, creating, deleted, deleting, error, updating) (wire: provisioningStatus)
timeoutintegerMaximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthealth_monitor_id, region_name, service_nameGet details about a loadbalancer health monitor
listselectregion_name, service_namepool_idList health monitors
createinsertregion_name, service_name, delay, max_retries, monitor_type, name, pool_id, timeoutCreate health monitor
updateupdatehealth_monitor_id, region_name, service_nameUpdate a health monitor
deletedeletehealth_monitor_id, region_name, service_nameDelete health monitor

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"}})
health_monitor_idstring (uuid)Health monitor ID (wire: healthMonitorId)
region_namestringRegion name (wire: regionName)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
pool_idstringLinked pool id (wire: poolId)

SELECT examples​

Get details about a loadbalancer health monitor

SELECT
id,
name,
pool_id,
delay,
http_configuration,
max_retries,
max_retries_down,
monitor_type,
operating_status,
provisioning_status,
timeout
FROM ovh.cloud_network.region_loadbalancing_health_monitors
WHERE health_monitor_id = '{{ health_monitor_id }}' -- required
AND region_name = '{{ region_name }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create health monitor

INSERT INTO ovh.cloud_network.region_loadbalancing_health_monitors (
delay,
http_configuration,
max_retries,
max_retries_down,
monitor_type,
name,
pool_id,
timeout,
region_name,
service_name
)
SELECT
{{ delay }} /* required */,
'{{ http_configuration }}',
{{ max_retries }} /* required */,
{{ max_retries_down }},
'{{ monitor_type }}' /* required */,
'{{ name }}' /* required */,
'{{ pool_id }}' /* required */,
{{ timeout }} /* required */,
'{{ region_name }}',
'{{ service_name }}'
RETURNING
id,
name,
pool_id,
delay,
http_configuration,
max_retries,
max_retries_down,
monitor_type,
operating_status,
provisioning_status,
timeout
;

UPDATE examples​

Update a health monitor

UPDATE ovh.cloud_network.region_loadbalancing_health_monitors
SET
delay = {{ delay }},
http_configuration = '{{ http_configuration }}',
max_retries = {{ max_retries }},
max_retries_down = {{ max_retries_down }},
name = '{{ name }}',
timeout = {{ timeout }}
WHERE
health_monitor_id = '{{ health_monitor_id }}' --required
AND region_name = '{{ region_name }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
RETURNING
id,
name,
pool_id,
delay,
http_configuration,
max_retries,
max_retries_down,
monitor_type,
operating_status,
provisioning_status,
timeout;

DELETE examples​

Delete health monitor

DELETE FROM ovh.cloud_network.region_loadbalancing_health_monitors
WHERE health_monitor_id = '{{ health_monitor_id }}' --required
AND region_name = '{{ region_name }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;