Skip to main content

node_groups_nodes

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

Overview

Namenode_groups_nodes
TypeResource
Idgoogle.compute.node_groups_nodes

Fields

NameDatatypeDescription
namestringThe name of the node.
acceleratorsarrayAccelerators for this node.
consumedResourcesobject
cpuOvercommitTypestringCPU overcommit.
disksarrayLocal disk configurations.
instanceConsumptionDataarrayInstance data that shows consumed resources on the node.
instancesarrayInstances scheduled on this node.
nodeTypestringThe type of this node.
satisfiesPzsboolean[Output Only] Reserved for future use.
serverBindingobject
serverIdstringServer ID associated with this node.
statusstring
totalResourcesobject
upcomingMaintenanceobjectUpcoming Maintenance notification information.

Methods

NameAccessible byRequired ParamsDescription
list_nodesSELECTnodeGroup, project, zoneLists nodes in the node group.
add_nodesINSERTnodeGroup, project, zoneAdds specified number of nodes to the node group.
delete_nodesDELETEnodeGroup, project, zoneDeletes specified nodes from the node group.

SELECT examples

Lists nodes in the node group.

SELECT
name,
accelerators,
consumedResources,
cpuOvercommitType,
disks,
instanceConsumptionData,
instances,
nodeType,
satisfiesPzs,
serverBinding,
serverId,
status,
totalResources,
upcomingMaintenance
FROM google.compute.node_groups_nodes
WHERE nodeGroup = '{{ nodeGroup }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';

INSERT example

Use the following StackQL query and manifest file to create a new node_groups_nodes resource.

/*+ create */
INSERT INTO google.compute.node_groups_nodes (
nodeGroup,
project,
zone,
additionalNodeCount
)
SELECT
'{{ nodeGroup }}',
'{{ project }}',
'{{ zone }}',
'{{ additionalNodeCount }}'
;

DELETE example

Deletes the specified node_groups_nodes resource.

/*+ delete */
DELETE FROM google.compute.node_groups_nodes
WHERE nodeGroup = '{{ nodeGroup }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';