v1
Double column
API
CLI
JS Client

Cloud Providers /

Drain cluster node

Drain a node by evicting all running pods.

Required permission

Account > Cloud > Clusters > Update

Path parameters

    • clusterId

      string required

      ID of the cluster

    • nodeId

      string required

      ID of the node

Response body

  • {object}

    Response object.

    • data

      {object} required

      Result data.

    API
    CLI
    JS Client

    POST /v1/cloud-providers/clusters/{clusterId}/nodes/{nodeId}/drain

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    © 2024 Northflank Ltd. All rights reserved.