---
title: "POST /projects/{project}/regions/{region}/nodeTemplates"
method: POST
path: "/projects/{project}/regions/{region}/nodeTemplates"
tags: ["nodeTemplates"]
---

# POST /projects/{project}/regions/{region}/nodeTemplates

`POST /projects/{project}/regions/{region}/nodeTemplates`

Creates a NodeTemplate resource in the specified project using the data
included in the request.

## Path parameters

- `project` string, required
- `region` string, required

## Query parameters

- `requestId` string

## Request body

- NodeTemplate — Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, readCreating node groups and instances.
  - `kind` string — Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
  - `name` string — The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
  - `disks` LocalDisk[]
    - `diskType` string — Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL.
    - `diskCount` integer — Specifies the number of such disks.
    - `diskSizeGb` integer — Specifies the size of the disk in base-2 GB.
  - `creationTimestamp` string — Output only. [Output Only] Creation timestamp inRFC3339 text format.
  - `accelerators` AcceleratorConfig[]
    - `acceleratorType` string — Full or partial URL of the accelerator type resource to attach to this instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
    - `acceleratorCount` integer — The number of the guest accelerator cards exposed to this instance.
  - `description` string — An optional description of this resource. Provide this property when you create the resource.
  - `region` string — Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
  - `selfLink` string — Output only. [Output Only] Server-defined URL for the resource.
  - `statusMessage` string — Output only. [Output Only] An optional, human-readable explanation of the status.
  - `nodeAffinityLabels` object — Labels to use for node affinity, which will be used in instance scheduling.
  - `id` string, uint64 — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
  - `cpuOvercommitType` 'CPU_OVERCOMMIT_TYPE_UNSPECIFIED' | 'ENABLED' | 'NONE' — CPU overcommit.
  - `nodeTypeFlexibility` NodeTemplateNodeTypeFlexibility
    - `cpus` string
    - `memory` string
    - `localSsd` string
  - `serverBinding` ServerBinding
    - `type` 'RESTART_NODE_ON_ANY_SERVER' | 'RESTART_NODE_ON_MINIMAL_SERVERS' | 'SERVER_BINDING_TYPE_UNSPECIFIED'
  - `nodeType` string — The node type to use for nodes group that are created from this template.
  - `status` 'CREATING' | 'DELETING' | 'INVALID' | 'READY' — Output only. [Output Only] The status of the node template. One of the following values:CREATING, READY, and DELETING.

## Response `200`

Successful response

---

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