Getting to grips with the Grafana API
Grafana offers a full-featured API for both Grafana Cloud and Grafana itself. This API is the same API used by the frontend, which means that we can also drive the functions of Grafana using either direct API calls in a script, or an IaC tool such as Terraform. We’ll start by having a high-level look at the APIs available in Grafana Cloud and Grafana, then we’ll look at the Grafana Terraform module and the Ansible collection, and see how to use them to manage a Grafana Cloud instance.
Exploring the Grafana Cloud API
The Grafana Cloud API is used to manage all aspects of a Grafana Cloud SaaS installation. Let’s have a high-level look at the functions provided by the Grafana Cloud API:
- Access policies and tokens: These API endpoints manage authentication and authorization resources. Here are their major functions:
- Create, read, update, and delete functions for access policies
- Create, read, update, and delete functions...