» Data Source: azurerm_public_ips
Use this data source to access information about a set of existing Public IP Addresses.
» Example Usage
data "azurerm_public_ips" "test" {
resource_group_name = "pip-test"
attached = false
}
» Argument Reference
-
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 Addressesname
field, case sensitive. -
allocation_type
- (Optional) The Allocation Type for the Public IP Address. Possible values includeStatic
orDynamic
.
» Attributes Reference
-
public_ips
- A List ofpublic_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