node_groups_nodes
Creates, updates, deletes, gets or lists a node_groups_nodes
resource.
Overview
Name | node_groups_nodes |
Type | Resource |
Id | google.compute.node_groups_nodes |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the node. |
accelerators | array | Accelerators for this node. |
consumedResources | object | |
cpuOvercommitType | string | CPU overcommit. |
disks | array | Local disk configurations. |
instanceConsumptionData | array | Instance data that shows consumed resources on the node. |
instances | array | Instances scheduled on this node. |
nodeType | string | The type of this node. |
satisfiesPzs | boolean | [Output Only] Reserved for future use. |
serverBinding | object | |
serverId | string | Server ID associated with this node. |
status | string | |
totalResources | object | |
upcomingMaintenance | object | Upcoming Maintenance notification information. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_nodes | SELECT | nodeGroup, project, zone | Lists nodes in the node group. |
add_nodes | INSERT | nodeGroup, project, zone | Adds specified number of nodes to the node group. |
delete_nodes | DELETE | nodeGroup, project, zone | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.node_groups_nodes (
nodeGroup,
project,
zone,
additionalNodeCount
)
SELECT
'{{ nodeGroup }}',
'{{ project }}',
'{{ zone }}',
'{{ additionalNodeCount }}'
;
- name: your_resource_model_name
props:
- name: additionalNodeCount
value: integer
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 }}';