diff --git a/docs/index.md b/docs/index.md index 2b4e1b4de..3930c1d21 100644 --- a/docs/index.md +++ b/docs/index.md @@ -210,6 +210,8 @@ resource "grafana_oncall_escalation" "example_notify_step" { - `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. - `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. - `cloud_api_url` (String) Grafana Cloud's API URL. May alternatively be set via the `GRAFANA_CLOUD_API_URL` environment variable. +- `connections_access_token` (String, Sensitive) A Grafana Connections API access token. May alternatively be set via the `GRAFANA_CONNECTIONS_ACCESS_TOKEN` environment variable. +- `connections_url` (String) A Grafana Connections API backend address. May alternatively be set via the `GRAFANA_CONNECTIONS_URL` environment variable. - `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. - `insecure_skip_verify` (Boolean) Skip TLS certificate verification. May alternatively be set via the `GRAFANA_INSECURE_SKIP_VERIFY` environment variable. - `oncall_access_token` (String, Sensitive) A Grafana OnCall access token. May alternatively be set via the `GRAFANA_ONCALL_ACCESS_TOKEN` environment variable. diff --git a/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource.tf b/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource.tf index 4226d0406..f837ed019 100644 --- a/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource.tf +++ b/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource.tf @@ -1,8 +1,8 @@ resource "grafana_connections_metrics_endpoint_scrape_job" "test" { - stack_id = "test-stack-id" - name = "my-scrape-job" - authentication_method = "basic" + stack_id = "test-stack-id" + name = "my-scrape-job" + authentication_method = "basic" authentication_basic_username = "my_username" authentication_basic_password = "my_password" - url = "https://dev.my-metrics-endpoint-url.com:9000/metrics" + url = "https://dev.my-metrics-endpoint-url.com:9000/metrics" } diff --git a/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource_update.tf b/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource_update.tf index 00f2f1e8b..b7366352b 100644 --- a/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource_update.tf +++ b/examples/resources/grafana_connections_metrics_endpoint_scrape_job/resource_update.tf @@ -1,9 +1,9 @@ resource "grafana_connections_metrics_endpoint_scrape_job" "test" { - stack_id = "test-stack-id" - name = "modified-scrape-job" - enabled = "false" - authentication_method = "bearer" + stack_id = "test-stack-id" + name = "modified-scrape-job" + enabled = "false" + authentication_method = "bearer" authentication_bearer_token = "test-token" - url = "https://www.modified-url.com:9000/metrics" - scrape_interval_seconds = "120" + url = "https://www.modified-url.com:9000/metrics" + scrape_interval_seconds = "120" }