0
0
mirror of https://github.com/netdata/netdata.git synced 2024-11-21 23:38:07 +00:00
netdata_netdata/docs/netdata-cloud/authentication-and-authorization/api-tokens.md
Fotis Voutsas 32a6cd38e7
Capitalize the word "Agent" (#19044)
* Capitalize the word Agent

* yaml -> json

* fix uppercase keys

* json update
2024-11-20 15:27:03 +02:00

1.1 KiB

API Tokens

Overview

Every single user can get access to the Netdata resource programmatically. It is done through the API Token, also called Bearer Token. This token is used for authentication and authorization, it can be issued in the Netdata UI under the user Settings:

image

The API Tokens are not going to expire and can be limited to a few scopes:

  • scope:all

    this token is given the same level of action as the user has, the use-case for it is Netdata terraform provider

  • scope:agent-ui

    this token is mainly used by the local Netdata Agent accessing the Cloud UI

  • scope:grafana-plugin

    this token is used for the Netdata Grafana plugin to access Netdata charts

Currently, Netdata Cloud is not exposing the stable API.

Example usage

  • get the Netdata Cloud space list
curl -H 'Accept: application/json' -H "Authorization: Bearer <token>" https://app.netdata.cloud/api/v2/spaces