terraform-provider-stackitp.../docs/data-sources/public_ip.md
Ruben Hönle 53a3697850
feat(iaas): support for v2 API (#1070)
relates to STACKITTPR-313
2025-12-17 15:40:46 +01:00

1.2 KiB

page_title subcategory description
stackit_public_ip Data Source - stackit Public IP resource schema. Must have a region specified in the provider configuration.

stackit_public_ip (Data Source)

Public IP resource schema. Must have a region specified in the provider configuration.

Example Usage

data "stackit_public_ip" "example" {
  project_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  public_ip_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Schema

Required

  • project_id (String) STACKIT project ID to which the public IP is associated.
  • public_ip_id (String) The public IP ID.

Optional

  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • id (String) Terraform's internal datasource ID. It is structured as "project_id,region,public_ip_id".
  • ip (String) The IP address.
  • labels (Map of String) Labels are key-value string pairs which can be attached to a resource container
  • network_interface_id (String) Associates the public IP with a network interface or a virtual IP (ID).