terraform-provider-stackitp.../docs/data-sources/postgresql_instance.md
2024-08-26 11:28:35 +02:00

2.1 KiB

page_title subcategory description
stackit_postgresql_instance Data Source - stackit PostgreSQL instance data source schema. Must have a region specified in the provider configuration. !> The STACKIT PostgreSQL service has reached its end of support on June 30th 2024. Resources of this type have stopped working since then. Use stackitpostgresflexinstance instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html

stackit_postgresql_instance (Data Source)

PostgreSQL instance data source schema. Must have a region specified in the provider configuration.

!> The STACKIT PostgreSQL service has reached its end of support on June 30th 2024. Resources of this type have stopped working since then. Use stackit_postgresflex_instance instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html

Example Usage

data "stackit_postgresql_instance" "example" {
  project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Schema

Required

  • instance_id (String) ID of the PostgreSQL instance.
  • project_id (String) STACKIT Project ID to which the instance is associated.

Read-Only

  • cf_guid (String)
  • cf_organization_guid (String)
  • cf_space_guid (String)
  • dashboard_url (String)
  • id (String) Terraform's internal data source. identifier. It is structured as "project_id,instance_id".
  • image_url (String)
  • name (String) Instance name.
  • parameters (Attributes) (see below for nested schema)
  • plan_id (String) The selected plan ID.
  • plan_name (String) The selected plan name.
  • version (String) The service version.

Nested Schema for parameters

Read-Only:

  • enable_monitoring (Boolean)
  • metrics_frequency (Number)
  • metrics_prefix (String)
  • monitoring_instance_id (String)
  • plugins (List of String)
  • sgw_acl (String)