---
title: "POST /v1/{+parent}/bareMetalNodePools:enroll"
method: POST
path: "/v1/{+parent}/bareMetalNodePools:enroll"
tags: ["projects"]
---

# POST /v1/{+parent}/bareMetalNodePools:enroll

`POST /v1/{+parent}/bareMetalNodePools:enroll`

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.

## Path parameters

- `parent` string, required

## Request body

- EnrollBareMetalNodePoolRequest — Message for enrolling an existing bare metal node pool to the GKE on-prem API.
  - `bareMetalNodePoolId` string — User provided OnePlatform identifier that is used as part of the resource name. (https://tools.ietf.org/html/rfc1123) format.
  - `validateOnly` boolean — If set, only validate the request, but do not actually enroll the node pool.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/gkeonprem.md) · [All operations](https://skmtc.net/google/apis/gkeonprem/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/gkeonprem/versions/aed3768b9183/schema)
