dots.v2.kubernetes.clusters.byCluster_id().clusterlint.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.kubernetes.clusters.byCluster_id(cluster_id).clusterlint.post(body: Clusterlint_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ClusterlintPostResponse>

Description

Clusterlint helps operators conform to Kubernetes best practices around resources, security and reliability to avoid common problems while operating or upgrading the clusters.

To request a clusterlint run on your cluster, send a POST request to /v2/kubernetes/clusters/{cluster_id}/clusterlint. This will run all checks present in the doks group by default, if a request body is not specified. Optionally specify the below attributes.

For information about the available checks, please refer to the clusterlint check documentation.

Parameters

Path 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

Request Body

includeGroups array of strings optional

Example: ["basic", "doks", "security"]

An array of check groups that will be run when clusterlint executes checks.

includeChecks array of strings optional

Example: ["bare-pods", "resource-requirements"]

An array of checks that will be run when clusterlint executes checks.

excludeGroups array of strings optional

Example: ["workload-health"]

An array of check groups that will be omitted when clusterlint executes checks.

excludeChecks array of strings optional

Example: ["default-namespace"]

An array of checks that will be run when clusterlint executes checks.

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").clusterlint.post({
    includeGroups: [
        "basic",
        "doks",
        "security",
    ],
    includeChecks: [
        "bare-pods",
        "resource-requirements",
    ],
    excludeGroups: [
        "workload-health",
    ],
    excludeChecks: [
        "default-namespace",
    ],
});

Response Example

Show Response Example
{
  "run_id": "50c2f44c-011d-493e-aee5-361a4a0d1844"
}

More Information

See /v2/kubernetes/clusters/{cluster_id}/clusterlint 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.