Skip to main content

nodepool_nodes

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

Overview​

Namenodepool_nodes
TypeResource
Idovh.cloud_kube.nodepool_nodes

Fields​

The following fields are returned by SELECT queries:

Node installed on your cluster

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
listselectkube_id, node_pool_id, service_namex_pagination_cursor, historyList all nodes contained in a 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_pool_idstringNode pool ID (wire: nodePoolId)
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​

List all nodes contained in a nodepool

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.nodepool_nodes
WHERE kube_id = '{{ kube_id }}' -- required
AND node_pool_id = '{{ node_pool_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND history = '{{ history }}'
;