From b75e136f7afed5bcf365f42a881fad857cc6d1e4 Mon Sep 17 00:00:00 2001 From: ikegentz Date: Fri, 29 Dec 2023 09:19:16 -0700 Subject: [PATCH] Add example and update docs --- docs/data-sources/organization.md | 58 +++++++++++++++++++ .../astronomer_organization/data-source.tf | 3 + 2 files changed, 61 insertions(+) create mode 100644 docs/data-sources/organization.md create mode 100644 examples/data-sources/astronomer_organization/data-source.tf diff --git a/docs/data-sources/organization.md b/docs/data-sources/organization.md new file mode 100644 index 0000000..309bc14 --- /dev/null +++ b/docs/data-sources/organization.md @@ -0,0 +1,58 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "astronomer_organization Data Source - terraform-provider-astronomer" +subcategory: "" +description: |- + Astronomer Organization Resource +--- + +# astronomer_organization (Data Source) + +Astronomer Organization Resource + +## Example Usage + +```terraform +data "astronomer_organization" "test" { + id = "abc123" # org id. +} +``` + + +## Schema + +### Required + +- `id` (String) Organization's unique identifier + +### Optional + +- `payment_method` (String) Payment method (if set) + +### Read-Only + +- `billing_email` (String) Billing email on file for the organization. +- `created_at` (String) Timestamped string of when this organization was created +- `is_scim_enabled` (Boolean) Whether or not scim is enabled +- `managed_domains` (Attributes List) List of managed domains (nested) (see [below for nested schema](#nestedatt--managed_domains)) +- `name` (String) Organization's name +- `product` (String) Type of astro product (e.g. hosted or hybrid) +- `status` (String) Status of the organization +- `support_plan` (String) Type of support plan the organization has +- `trial_expires_at` (String) When the trial expires, if organization is in a trial +- `updated_at` (String) Last time the organization was updated + + +### Nested Schema for `managed_domains` + +Required: + +- `created_at` (String) + +Read-Only: + +- `enforced_logins` (List of String) +- `id` (Boolean) +- `name` (String) +- `status` (String) +- `updated_at` (String) diff --git a/examples/data-sources/astronomer_organization/data-source.tf b/examples/data-sources/astronomer_organization/data-source.tf new file mode 100644 index 0000000..bd6ce44 --- /dev/null +++ b/examples/data-sources/astronomer_organization/data-source.tf @@ -0,0 +1,3 @@ +data "astronomer_organization" "test" { + id = "abc123" # org id. +} \ No newline at end of file