dots.v2.kubernetes.clusters.byCluster_id().node_pools.byNode_pool_id().get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.kubernetes.clusters.byCluster_id(cluster_id).node_pools.byNode_pool_id(node_pool_id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithNode_pool_GetResponse>

Description

To show information about a specific node pool in a Kubernetes cluster, send a GET request to /v2/kubernetes/clusters/{cluster_id}/node_pools/{node_pool_id}.

Parameters

cluster_id string required

Example: bd5f5959-5e1e-4205-a714-a914373942af

A unique ID that can be used to reference a Kubernetes cluster.

Min: 1

node_pool_id string required

Example: cdda885e-7663-40c8-bc74-3a036c66545d

A unique ID that can be used to reference a Kubernetes node pool.

Min: 1

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.kubernetes.clusters
    .byCluster_id("bd5f5959-5e1e-4205-a714-a914373942af").node_pools
    .byNode_pool_id("cdda885e-7663-40c8-bc74-3a036c66545d").get();

Response Example

Show Response Example
{
  "node_pool": {
    "id": "cdda885e-7663-40c8-bc74-3a036c66545d",
    "name": "frontend-pool",
    "size": "s-1vcpu-2gb",
    "count": 3,
    "tags": [
      "production",
      "web-team",
      "k8s",
      "k8s:bd5f5959-5e1e-4205-a714-a914373942af",
      "k8s:worker"
    ],
    "labels": {
      "service": "backend",
      "priority": "high"
    },
    "taints": [
      {
        "key": "priority",
        "value": "high",
        "effect": "NoSchedule"
      }
    ],
    "auto_scale": false,
    "min_nodes": 0,
    "max_nodes": 0,
    "nodes": [
      {
        "id": "478247f8-b1bb-4f7a-8db9-2a5f8d4b8f8f",
        "name": "adoring-newton-3niq",
        "status": {
          "state": "running"
        },
        "droplet_id": "205545370",
        "created_at": "2018-11-15T16:00:11Z",
        "updated_at": "2018-11-15T16:00:11Z"
      },
      {
        "id": "ad12e744-c2a9-473d-8aa9-be5680500eb1",
        "name": "adoring-newton-3nim",
        "status": {
          "state": "running"
        },
        "droplet_id": "205545371",
        "created_at": "2018-11-15T16:00:11Z",
        "updated_at": "2018-11-15T16:00:11Z"
      },
      {
        "id": "e46e8d07-f58f-4ff1-9737-97246364400e",
        "name": "adoring-newton-3ni7",
        "status": {
          "state": "running"
        },
        "droplet_id": "205545372",
        "created_at": "2018-11-15T16:00:11Z",
        "updated_at": "2018-11-15T16:00:11Z"
      }
    ]
  }
}

More Information

See /v2/kubernetes/clusters/{cluster_id}/node_pools/{node_pool_id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.