This resource is deprecated and will be removed in a future release. Please use grafana_cloud_access_policy instead.
Manages a single API key on the Grafana Cloud portal (on the organization level)
Required access policy scopes:
resource "grafana_cloud_api_key" "test" {
cloud_org_slug = "myorg"
name = "my-key"
role = "Admin"
}
cloud_org_slug
(String) The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.name
(String) Name of the API key.role
(String) Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.id
(String) The ID of this resource.key
(String, Sensitive) The generated API key.Import is supported using the following syntax:
terraform import grafana_cloud_api_key.name "{{ orgSlug }}:{{ apiKeyName }}"