Skip to main content

nodes

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

Overview​

Namenodes
TypeResource
Idovh.cloud_kube.nodes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringNode ID
namestringNode name
instance_idstringPublic Cloud instance id (wire: instanceId)
node_pool_idstringNodePool parent id (wire: nodePoolId)
project_idstringProject id (wire: projectId)
created_atstring (date-time)Creation date (wire: createdAt)
deleted_atstring (date-time)Node deletion date (wire: deletedAt)
deployed_atstring (date-time)Node deployment date (wire: deployedAt)
flavorstringFlavor name
is_up_to_datebooleanTrue if the node is up to date (wire: isUpToDate)
statusstringStatus (DELETED, DELETING, ERROR, FLAVOR_OUT_OF_STOCK_ERROR, INSTALLING, MAINTENANCE, READY, REDEPLOYING, REOPENING, RESETTING, SUSPENDED, SUSPENDING, UNKNOWN, UPDATING, USER_ERROR, USER_NODE_NOT_FOUND_ERROR, USER_NODE_SUSPENDED_SERVICE, USER_QUOTA_ERROR, USER_WEBHOOK_PREVENTING_OPERATIONS_ERROR)
updated_atstring (date-time)Node last update date (wire: updatedAt)
versionstringNode version

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectkube_id, node_id, service_nameGet information on a specific node on your cluster
listselectkube_id, service_namex_pagination_cursor, historyList your nodes
deletedeletekube_id, node_id, service_nameDelete a specific node on your cluster. This will also decrease by one the desirednodes value of its nodepool.

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"}})
kube_idstringKube ID (wire: kubeId)
node_idstringNode ID (wire: nodeId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
historybooleanIf set to true then returns DELETED nodes ordered by deletion date (most recently deleted first). Returns non-DELETED nodes if false or not set.
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)

SELECT examples​

Get information on a specific node on your cluster

SELECT
id,
name,
instance_id,
node_pool_id,
project_id,
created_at,
deleted_at,
deployed_at,
flavor,
is_up_to_date,
status,
updated_at,
version
FROM ovh.cloud_kube.nodes
WHERE kube_id = '{{ kube_id }}' -- required
AND node_id = '{{ node_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

DELETE examples​

Delete a specific node on your cluster. This will also decrease by one the desirednodes value of its nodepool.

DELETE FROM ovh.cloud_kube.nodes
WHERE kube_id = '{{ kube_id }}' --required
AND node_id = '{{ node_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;