Skip to main content

vmware_node_pools

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

Overview

Namevmware_node_pools
TypeResource
Idgoogle.gkeonprem.vmware_node_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The resource name of this node pool.
annotationsobjectAnnotations on the node pool. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
configobjectRequired. The node configuration of the node pool. (id: VmwareNodeConfig)
createTimestring (google-datetime)Output only. The time at which this node pool was created.
deleteTimestring (google-datetime)Output only. The time at which this node pool was deleted. If the resource is not deleted, this must be empty
displayNamestringThe display name for the node pool.
etagstringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Allows clients to perform consistent read-modify-writes through optimistic concurrency control.
nodePoolAutoscalingobjectNode pool autoscaling config for the node pool. (id: VmwareNodePoolAutoscalingConfig)
onPremVersionstringAnthos version for the node pool. Defaults to the user cluster version.
reconcilingbooleanOutput only. If set, there are currently changes in flight to the node pool.
statestringOutput only. The current state of the node pool.
statusobjectOutput only. ResourceStatus representing the detailed VMware node pool state. (id: ResourceStatus)
uidstringOutput only. The unique identifier of the node pool.
updateTimestring (google-datetime)Output only. The time at which this node pool was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_vmware_clusters_vmware_node_pools_getselectprojectsId, locationsId, vmwareClustersId, vmwareNodePoolsIdviewGets details of a single VMware node pool.
projects_locations_vmware_clusters_vmware_node_pools_listselectprojectsId, locationsId, vmwareClustersIdpageSize, pageToken, viewLists VMware node pools in a given project, location and VMWare cluster.
projects_locations_vmware_clusters_vmware_node_pools_createinsertprojectsId, locationsId, vmwareClustersIdvmwareNodePoolId, validateOnlyCreates a new VMware node pool in a given project, location and VMWare cluster.
projects_locations_vmware_clusters_vmware_node_pools_patchupdateprojectsId, locationsId, vmwareClustersId, vmwareNodePoolsIdupdateMask, validateOnlyUpdates the parameters of a single VMware node pool.
projects_locations_vmware_clusters_vmware_node_pools_deletedeleteprojectsId, locationsId, vmwareClustersId, vmwareNodePoolsIdetag, allowMissing, validateOnly, ignoreErrorsDeletes a single VMware node pool.
projects_locations_vmware_clusters_vmware_node_pools_enrollexecprojectsId, locationsId, vmwareClustersIdEnrolls a VMware node pool to Anthos On-Prem API
projects_locations_vmware_clusters_vmware_node_pools_unenrollexecprojectsId, locationsId, vmwareClustersId, vmwareNodePoolsIdetag, allowMissing, validateOnlyUnenrolls a VMware node pool to Anthos On-Prem API

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
locationsIdstring
projectsIdstring
vmwareClustersIdstring
vmwareNodePoolsIdstring
allowMissingboolean
etagstring
ignoreErrorsboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean
viewstring
vmwareNodePoolIdstring

SELECT examples

Gets details of a single VMware node pool.

SELECT
name,
annotations,
config,
createTime,
deleteTime,
displayName,
etag,
nodePoolAutoscaling,
onPremVersion,
reconciling,
state,
status,
uid,
updateTime
FROM google.gkeonprem.vmware_node_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND vmwareClustersId = '{{ vmwareClustersId }}' -- required
AND vmwareNodePoolsId = '{{ vmwareNodePoolsId }}' -- required
AND view = '{{ view }}';

INSERT examples

Creates a new VMware node pool in a given project, location and VMWare cluster.

INSERT INTO google.gkeonprem.vmware_node_pools (
data__name,
data__displayName,
data__etag,
data__annotations,
data__nodePoolAutoscaling,
data__config,
data__onPremVersion,
projectsId,
locationsId,
vmwareClustersId,
vmwareNodePoolId,
validateOnly
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ etag }}',
'{{ annotations }}',
'{{ nodePoolAutoscaling }}',
'{{ config }}',
'{{ onPremVersion }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ vmwareClustersId }}',
'{{ vmwareNodePoolId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single VMware node pool.

UPDATE google.gkeonprem.vmware_node_pools
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__etag = '{{ etag }}',
data__annotations = '{{ annotations }}',
data__nodePoolAutoscaling = '{{ nodePoolAutoscaling }}',
data__config = '{{ config }}',
data__onPremVersion = '{{ onPremVersion }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareClustersId = '{{ vmwareClustersId }}' --required
AND vmwareNodePoolsId = '{{ vmwareNodePoolsId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single VMware node pool.

DELETE FROM google.gkeonprem.vmware_node_pools
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareClustersId = '{{ vmwareClustersId }}' --required
AND vmwareNodePoolsId = '{{ vmwareNodePoolsId }}' --required
AND etag = '{{ etag }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}'
AND ignoreErrors = '{{ ignoreErrors }}';

Lifecycle Methods

Enrolls a VMware node pool to Anthos On-Prem API

EXEC google.gkeonprem.vmware_node_pools.projects_locations_vmware_clusters_vmware_node_pools_enroll 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@vmwareClustersId='{{ vmwareClustersId }}' --required
@@json=
'{
"vmwareNodePoolId": "{{ vmwareNodePoolId }}"
}';