From 619082b29d96838a8b88a86da34f3cb43cfc499f Mon Sep 17 00:00:00 2001 From: Jack Coates <124737821+obs-gh-jackcoates@users.noreply.github.com> Date: Wed, 5 Jun 2024 01:37:07 -0400 Subject: [PATCH] OB-31707 missing workspace (#113) --- docs/data-sources/app.md | 3 ++- docs/data-sources/ingest_info.md | 24 +++++++++++++++++++ .../data-sources/observe_app/data-source.tf | 5 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 docs/data-sources/ingest_info.md diff --git a/docs/data-sources/app.md b/docs/data-sources/app.md index 2b76ea33..7c074dee 100644 --- a/docs/data-sources/app.md +++ b/docs/data-sources/app.md @@ -14,7 +14,8 @@ Fetches data for an installed Observe app. ```terraform data "observe_folder" "example" { - name = "OpenWeather" + workspace = data.observe_workspace.default + name = "OpenWeather" } data "observe_app" "example" { diff --git a/docs/data-sources/ingest_info.md b/docs/data-sources/ingest_info.md new file mode 100644 index 00000000..83d7b512 --- /dev/null +++ b/docs/data-sources/ingest_info.md @@ -0,0 +1,24 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "observe_ingest_info Data Source - terraform-provider-observe" +subcategory: "" +description: |- + Ingest info for the Observe tenant. +--- + +# observe_ingest_info (Data Source) + +Ingest info for the Observe tenant. + + + + +## Schema + +### Read-Only + +- `collect_url` (String) Base URL for the Observe ingest API. +- `domain` (String) Base domain for the Observe ingest API. +- `id` (String) The ID of this resource. +- `port` (String) Port over which data should be sent. If omitted, assume scheme defaults. +- `scheme` (String) URI scheme for ingesting data. diff --git a/examples/data-sources/observe_app/data-source.tf b/examples/data-sources/observe_app/data-source.tf index 940aed48..a683cc19 100644 --- a/examples/data-sources/observe_app/data-source.tf +++ b/examples/data-sources/observe_app/data-source.tf @@ -1,8 +1,9 @@ data "observe_folder" "example" { - name = "OpenWeather" + workspace = data.observe_workspace.default + name = "OpenWeather" } data "observe_app" "example" { folder = data.observe_folder.example.oid name = "OpenWeather" -} \ No newline at end of file +}