Skip to main content

datacenter_host_resiliences

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

Overview​

Namedatacenter_host_resiliences
TypeResource
Idovh.dedicated_cloud.datacenter_host_resiliences

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
statestringState of the option (disabled, disabling, enabled, enabling, error, migrating, unknown)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdatacenter_id, host_id, service_nameGet the host resilience test
disableexecdatacenterId, hostId, serviceNameStop the resilience test
enableexecdatacenterId, hostId, serviceNameStart a resilience test. Cuts the network access of the host for the given duration, then reconnects it: 10 minutes to 24 hours, 1 hour by default. Returns a task to track progress.

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"}})
datacenterIdintegerId of the Datacenter
datacenter_idintegerId of the Datacenter (wire: datacenterId)
hostIdintegerId of the host
host_idintegerId of the host (wire: hostId)
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)

SELECT examples​

Get the host resilience test

SELECT
state
FROM ovh.dedicated_cloud.datacenter_host_resiliences
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND host_id = '{{ host_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Stop the resilience test

EXEC ovh.dedicated_cloud.datacenter_host_resiliences.disable
@datacenterId='{{ datacenterId }}' --required,
@hostId='{{ hostId }}' --required,
@serviceName='{{ serviceName }}' --required
;