nodepool_nodes
Creates, updates, deletes, gets or lists a nodepool_nodes resource.
Overview​
| Name | nodepool_nodes |
| Type | Resource |
| Id | ovh.cloud_kube.nodepool_nodes |
Fields​
The following fields are returned by SELECT queries:
- list
Node installed on your cluster
| Name | Datatype | Description |
|---|---|---|
id | string | Node ID |
name | string | Node name |
instance_id | string | Public Cloud instance id (wire: instanceId) |
node_pool_id | string | NodePool parent id (wire: nodePoolId) |
project_id | string | Project id (wire: projectId) |
created_at | string (date-time) | Creation date (wire: createdAt) |
deleted_at | string (date-time) | Node deletion date (wire: deletedAt) |
deployed_at | string (date-time) | Node deployment date (wire: deployedAt) |
flavor | string | Flavor name |
is_up_to_date | boolean | True if the node is up to date (wire: isUpToDate) |
status | string | Status (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_at | string (date-time) | Node last update date (wire: updatedAt) |
version | string | Node version |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | kube_id, node_pool_id, service_name | x_pagination_cursor, history | List 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_id | string | Kube ID (wire: kubeId) |
node_pool_id | string | Node pool ID (wire: nodePoolId) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
history | boolean | If 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_cursor | string | Pagination cursor (wire: X-Pagination-Cursor) |
SELECT examples​
- list
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 }}'
;