Skip to main content

kx_cluster_nodes

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

Overview

Namekx_cluster_nodes
TypeResource
Idaws.finspace.kx_cluster_nodes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringA token that indicates where a results page should begin. (pattern: <code>.*</code>)
nodesarrayA list of nodes associated with the cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_kx_cluster_nodesselectenvironment_id, cluster_name, regionnextToken, maxResultsLists all the nodes in a kdb cluster.
delete_kx_cluster_nodedeleteenvironment_id, cluster_name, node_id, regionDeletes the specified nodes from a cluster.

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
cluster_namestringThe name of the cluster, for which you want to delete the nodes.
environment_idstringA unique identifier for the kdb environment.
node_idstringA unique identifier for the node that you want to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringA token that indicates where a results page should begin.

SELECT examples

Lists all the nodes in a kdb cluster.

SELECT
next_token,
nodes
FROM aws.finspace.kx_cluster_nodes
WHERE environment_id = '{{ environment_id }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

DELETE examples

Deletes the specified nodes from a cluster.

DELETE FROM aws.finspace.kx_cluster_nodes
WHERE environment_id = '{{ environment_id }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND node_id = '{{ node_id }}' --required
AND region = '{{ region }}' --required
;