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​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringOutput only. [Output Only] Unique identifier for the resource; defined by the server.
itemsarrayA list of Node resources.
kindstringOutput only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of nodes in the specified node group. (default: compute#nodeGroupsListNodes)
nextPageTokenstringOutput only. [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
selfLinkstringOutput only. [Output Only] Server-defined URL for this resource.
warningobjectOutput only. [Output Only] Informational warning message.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_nodesselectproject, zone, nodeGroupfilter, maxResults, orderBy, pageToken, returnPartialSuccessLists nodes in the node group.
add_nodesinsertproject, zone, nodeGrouprequestIdAdds specified number of nodes to the node group.
delete_nodesdeleteproject, zone, nodeGrouprequestIdDeletes specified nodes from the node group.

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
nodeGroupstring
projectstring
zonestring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean

SELECT examples​

Lists nodes in the node group.

SELECT
id,
items,
kind,
nextPageToken,
selfLink,
warning
FROM google.compute.node_groups_nodes
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND nodeGroup = '{{ nodeGroup }}' -- required
AND filter = '{{ filter }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
;

INSERT examples​

Adds specified number of nodes to the node group.

INSERT INTO google.compute.node_groups_nodes (
data__additionalNodeCount,
project,
zone,
nodeGroup,
requestId
)
SELECT
{{ additionalNodeCount }},
'{{ project }}',
'{{ zone }}',
'{{ nodeGroup }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

DELETE examples​

Deletes specified nodes from the node group.

DELETE FROM google.compute.node_groups_nodes
WHERE project = '{{ project }}' --required
AND zone = '{{ zone }}' --required
AND nodeGroup = '{{ nodeGroup }}' --required
AND requestId = '{{ requestId }}'
;