You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`auth` (String, Sensitive) API token, basic auth in the `username:password` format or `anonymous` (string literal). May alternatively be set via the `GRAFANA_AUTH` environment variable.
208
208
-`ca_cert` (String) Certificate CA bundle (file path or literal value) to use to verify the Grafana server's certificate. May alternatively be set via the `GRAFANA_CA_CERT` environment variable.
209
-
-`cloud_api_key` (String, Sensitive) Access Policy Token (or API key) for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_API_KEY` environment variable.
209
+
-`cloud_access_policy_token` (String, Sensitive) Access Policy Token for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_ACCESS_POLICY_TOKEN` environment variable.
210
+
-`cloud_api_key` (String, Sensitive, Deprecated) Deprecated: Use `cloud_access_policy_token` instead.
210
211
-`cloud_api_url` (String) Grafana Cloud's API URL. May alternatively be set via the `GRAFANA_CLOUD_API_URL` environment variable.
211
212
-`http_headers` (Map of String, Sensitive) Optional. HTTP headers mapping keys to values used for accessing the Grafana and Grafana Cloud APIs. May alternatively be set via the `GRAFANA_HTTP_HEADERS` environment variable in JSON format.
212
213
-`insecure_skip_verify` (Boolean) Skip TLS certificate verification. May alternatively be set via the `GRAFANA_INSECURE_SKIP_VERIFY` environment variable.
@@ -230,57 +231,16 @@ One, or many, of the following authentication settings must be set. Each authent
230
231
### `auth`
231
232
232
233
This can be a Grafana API key, basic auth `username:password`, or a
233
-
[Grafana API key](https://grafana.com/docs/grafana/latest/developers/http_api/create-api-tokens-for-org/).
234
+
[Grafana Service Account token](https://grafana.com/docs/grafana/latest/developers/http_api/create-api-tokens-for-org/).
234
235
235
-
### `cloud_api_key`
236
+
### `cloud_access_policy_token`
236
237
237
238
An access policy token created on the [Grafana Cloud Portal](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/create-api-key/).
`SM_API_URL` is the URL of the Synthetic Monitoring API.
259
-
Based on the region of your Grafana Cloud stack, you need to use a different API URL.
260
-
261
-
Please [see API docs](https://github.com/grafana/synthetic-monitoring-api-go-client/blob/main/docs/API.md#api-url) to find `SM_API_URL` for your region.
262
-
263
-
`stackId`, `metricsInstanceId`, and `logsInstanceId` may also be obtained on
264
-
the portal. First, you need to create a Stack by clicking "Add Stack". When it's
265
-
created you will be taken to its landing page on the portal. Get your `stackId`
[Grafana Synthetic Monitoring](https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/) uses distinct tokens for API access.
243
+
You can use the `grafana_synthetic_monitoring_installation` resource as shown above or you can request a new Synthetic Monitoring API key in Synthetics -> Config page.
MarkdownDescription: "Access Policy Token for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_ACCESS_POLICY_TOKEN` environment variable.",
178
+
},
173
179
"cloud_api_key": schema.StringAttribute{
174
180
Optional: true,
175
181
Sensitive: true,
176
-
MarkdownDescription: "Access Policy Token (or API key) for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_API_KEY` environment variable.",
// CheckCloudInstanceTestsEnabled checks if tests that run on cloud instances are enabled. This should be the first line of any test that tests Grafana Cloud Pro features
Copy file name to clipboardExpand all lines: templates/index.md.tmpl
+4-45Lines changed: 4 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -37,57 +37,16 @@ One, or many, of the following authentication settings must be set. Each authent
37
37
### `auth`
38
38
39
39
This can be a Grafana API key, basic auth `username:password`, or a
40
-
[Grafana API key](https://grafana.com/docs/grafana/latest/developers/http_api/create-api-tokens-for-org/).
40
+
[Grafana Service Account token](https://grafana.com/docs/grafana/latest/developers/http_api/create-api-tokens-for-org/).
41
41
42
-
### `cloud_api_key`
42
+
### `cloud_access_policy_token`
43
43
44
44
An access policy token created on the [Grafana Cloud Portal](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/create-api-key/).
`SM_API_URL` is the URL of the Synthetic Monitoring API.
66
-
Based on the region of your Grafana Cloud stack, you need to use a different API URL.
67
-
68
-
Please [see API docs](https://github.com/grafana/synthetic-monitoring-api-go-client/blob/main/docs/API.md#api-url) to find `SM_API_URL` for your region.
69
-
70
-
`stackId`, `metricsInstanceId`, and `logsInstanceId` may also be obtained on
71
-
the portal. First, you need to create a Stack by clicking "Add Stack". When it's
72
-
created you will be taken to its landing page on the portal. Get your `stackId`
[Grafana Synthetic Monitoring](https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/) uses distinct tokens for API access.
49
+
You can use the `grafana_synthetic_monitoring_installation` resource as shown above or you can request a new Synthetic Monitoring API key in Synthetics -> Config page.
0 commit comments