Skip to main content

datacenter_nsxt_edge_resiliences

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

Overview​

Namedatacenter_nsxt_edge_resiliences
TypeResource
Idovh.dedicated_cloud.datacenter_nsxt_edge_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, nsxt_edge_id, service_nameGet the edge node resilience test
disableexecdatacenterId, nsxtEdgeId, serviceNameStop the resilience test. Stops the resilience test on the edge node. Returns a task to track progress.
enableexecdatacenterId, nsxtEdgeId, serviceNameStart a resilience test. Puts the edge node in maintenance mode 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)
nsxtEdgeIdintegerId of the NSX-T Edge
nsxt_edge_idintegerId of the NSX-T Edge (wire: nsxtEdgeId)
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)

SELECT examples​

Get the edge node resilience test

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Stop the resilience test. Stops the resilience test on the edge node. Returns a task to track progress.

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