Use this data source to access information about a set of existing Public IP Addresses.
data "azurerm_public_ips" "example" {
resource_group_name = "pip-test"
attachment_status = "Attached"
}
resource_group_name
- Specifies the name of the resource group.attachment_status
- (Optional) Filter to include IP Addresses which are attached to a device, such as a VM/LB (Attached
) or unattached (Unattached
).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 Addressdomain_name_label
- The Domain Name Label of the Public IP Addressfqdn
- The FQDN of the Public IP Addressname
- The Name of the Public IP Addressip_address
- The IP address of the Public IP AddressThe timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Public IP Addresses.