Use this data source to access a filtered list of Public IP Addresses
data "azurerm_public_ips" "test" { resource_group_name = "pip-test" attached = false }
resource_group_name
- (Required) Specifies the name of the resource group. attached
- (Optional) Filter to include IP Addresses which are attached to a device, such as a VM/LB (true
) or unattached (false
). name_prefix
- (Optional) A prefix match used for the IP Addresses name
field, case sensitive. allocation_type
- (Optional) The Allocation Type for the Public IP Address. Possible values include Static
or Dynamic
. public_ips
- A List of public_ips
blocks as defined below filtered by the criteria above. A public_ips
block contains:
id
- The ID of the Public IP Address domain_name_label
- The Domain Name Label of the Public IP Address fqdn
- The FQDN of the Public IP Address name
- The Name of the Public IP Address
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/public_ips.html