Skip to main content

nodes

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

Overview​

Namenodes
TypeResource
Idovh.nutanix.nodes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
ahv_ipstring (ipv4)Hypervisor IP (example: 192.0.2.0) (wire: ahvIp)
cvm_ipstring (ipv4)Controler VM IP (example: 192.0.2.0) (wire: cvmIp)
possible_actionsarrayNode possible actions (wire: possibleActions)
serverstringName of the associated server
statusstringNode status (DEPLOYED, DEPLOYING, DEPLOY_CANCELLED, DEPLOY_FAILURE, UNDEPLOYED, UNDEPLOYING, UNDEPLOY_CANCELLED, UNDEPLOY_FAILURE, UNKNOWN)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectserver, service_nameGet a node details in a cluster
listselectservice_nameGet all nodes in a cluster
updateupdateserver, service_name, versionReinstall a node in a cluster
deployexecserver, serviceName
terminateexecserver, serviceNameTerminate a node

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"}})
serverstringServer
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Get a node details in a cluster

SELECT
ahv_ip,
cvm_ip,
possible_actions,
server,
status
FROM ovh.nutanix.nodes
WHERE server = '{{ server }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Reinstall a node in a cluster

UPDATE ovh.nutanix.nodes
SET
version = '{{ version }}'
WHERE
server = '{{ server }}' --required
AND service_name = '{{ service_name }}' --required
AND version = '{{ version }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

successful operation

EXEC ovh.nutanix.nodes.deploy
@server='{{ server }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"ahvIp": "{{ ahvIp }}",
"cvmIp": "{{ cvmIp }}",
"version": "{{ version }}"
}'
;