Skip to main content

bare_metal_node_pools

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

Overview

Namebare_metal_node_pools
TypeResource
Idgoogle.gkeonprem.bare_metal_node_pools

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The bare metal node pool resource name.
annotationsobjectAnnotations on the bare metal 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.
createTimestring (google-datetime)Output only. The time at which this bare metal node pool was created.
deleteTimestring (google-datetime)Output only. The time at which this bare metal node pool was deleted. If the resource is not deleted, this must be empty
displayNamestringThe display name for the bare metal 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.
nodePoolConfigobjectRequired. Node pool configuration. (id: BareMetalNodePoolConfig)
reconcilingbooleanOutput only. If set, there are currently changes in flight to the bare metal node pool.
statestringOutput only. The current state of the bare metal node pool.
statusobjectOutput only. ResourceStatus representing the detailed node pool status. (id: ResourceStatus)
uidstringOutput only. The unique identifier of the bare metal node pool.
updateTimestring (google-datetime)Output only. The time at which this bare metal node pool was last updated.
upgradePolicyobjectThe worker node pool upgrade policy. (id: BareMetalNodePoolUpgradePolicy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_bare_metal_clusters_bare_metal_node_pools_getselectprojectsId, locationsId, bareMetalClustersId, bareMetalNodePoolsIdviewGets details of a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_listselectprojectsId, locationsId, bareMetalClustersIdpageSize, pageToken, viewLists bare metal node pools in a given project, location and bare metal cluster.
projects_locations_bare_metal_clusters_bare_metal_node_pools_createinsertprojectsId, locationsId, bareMetalClustersIdbareMetalNodePoolId, validateOnlyCreates a new bare metal node pool in a given project, location and Bare Metal cluster.
projects_locations_bare_metal_clusters_bare_metal_node_pools_patchupdateprojectsId, locationsId, bareMetalClustersId, bareMetalNodePoolsIdupdateMask, allowMissing, validateOnlyUpdates the parameters of a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_deletedeleteprojectsId, locationsId, bareMetalClustersId, bareMetalNodePoolsIdetag, allowMissing, validateOnly, ignoreErrorsDeletes a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_enrollexecprojectsId, locationsId, bareMetalClustersIdEnrolls an existing bare metal node pool to the Anthos On-Prem API within a given project and location. Through enrollment, an existing node pool will become Anthos On-Prem API managed. The corresponding GCP resources will be created.
projects_locations_bare_metal_clusters_bare_metal_node_pools_unenrollexecprojectsId, locationsId, bareMetalClustersId, bareMetalNodePoolsIdetag, allowMissing, validateOnlyUnenrolls a bare metal node pool from 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
bareMetalClustersIdstring
bareMetalNodePoolsIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
bareMetalNodePoolIdstring
etagstring
ignoreErrorsboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean
viewstring

SELECT examples

Gets details of a single bare metal node pool.

SELECT
name,
annotations,
createTime,
deleteTime,
displayName,
etag,
nodePoolConfig,
reconciling,
state,
status,
uid,
updateTime,
upgradePolicy
FROM google.gkeonprem.bare_metal_node_pools
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bareMetalClustersId = '{{ bareMetalClustersId }}' -- required
AND bareMetalNodePoolsId = '{{ bareMetalNodePoolsId }}' -- required
AND view = '{{ view }}';

INSERT examples

Creates a new bare metal node pool in a given project, location and Bare Metal cluster.

INSERT INTO google.gkeonprem.bare_metal_node_pools (
data__name,
data__displayName,
data__etag,
data__annotations,
data__nodePoolConfig,
data__upgradePolicy,
projectsId,
locationsId,
bareMetalClustersId,
bareMetalNodePoolId,
validateOnly
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ etag }}',
'{{ annotations }}',
'{{ nodePoolConfig }}',
'{{ upgradePolicy }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ bareMetalClustersId }}',
'{{ bareMetalNodePoolId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single bare metal node pool.

UPDATE google.gkeonprem.bare_metal_node_pools
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__etag = '{{ etag }}',
data__annotations = '{{ annotations }}',
data__nodePoolConfig = '{{ nodePoolConfig }}',
data__upgradePolicy = '{{ upgradePolicy }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bareMetalClustersId = '{{ bareMetalClustersId }}' --required
AND bareMetalNodePoolsId = '{{ bareMetalNodePoolsId }}' --required
AND updateMask = '{{ updateMask}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single bare metal node pool.

DELETE FROM google.gkeonprem.bare_metal_node_pools
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bareMetalClustersId = '{{ bareMetalClustersId }}' --required
AND bareMetalNodePoolsId = '{{ bareMetalNodePoolsId }}' --required
AND etag = '{{ etag }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}'
AND ignoreErrors = '{{ ignoreErrors }}';

Lifecycle Methods

Enrolls an existing bare metal node pool to the Anthos On-Prem API within a given project and location. Through enrollment, an existing node pool will become Anthos On-Prem API managed. The corresponding GCP resources will be created.

EXEC google.gkeonprem.bare_metal_node_pools.projects_locations_bare_metal_clusters_bare_metal_node_pools_enroll 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@bareMetalClustersId='{{ bareMetalClustersId }}' --required
@@json=
'{
"bareMetalNodePoolId": "{{ bareMetalNodePoolId }}",
"validateOnly": {{ validateOnly }}
}';