Skip to content
Documentation

Get a token for the cluster's ClusterNest sign-in (Prometheus)

v2
OpenAPI 3.1.0

ClusterNest API

To get started, generate an access token via the POST /auth/token endpoint below. Afterwards include the token as Bearer in the Authorization header of all requests. e.g. Authorization: Bearer <your_access_token>.

Client Libraries

prometheus

​

Get a token for the cluster's ClusterNest sign-in

​

Exchange your access token for a short-lived token the cluster accepts, for scripts and tools that cannot sign in with a browser. It carries your role in the organization: members with an owner, admin or write role get full access, members with the read role get read-only access. The cluster needs the builtin auth source.

Path Parameters

  • Integer numbers.

Responses

  • application/json
  • application/json
Request Example for post/cluster/prometheus/{cluster_id}/builtin-token
curl /cluster/prometheus/1/builtin-token \
  --request POST \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "access_token": "string",
  "token_type": "Bearer",
  "expires_in": 1
}