Retrieves information about a specific IPv4 address associated with a Vultr instance using filters.
Get information about a Vultr instance IPv4.
Get the information for an IPv4 address by instance_id:
data "vultr_instance_ipv4" "my_instance_ipv4" {
filter {
name = "ip"
values = ["123.123.123.123"]
}
}
The following arguments are supported:
filter - (Required) Query parameters for finding IPv4 address.The filter block supports the following:
name - Attribute name to filter with.values - One or more values to filter with.The following attributes are exported:
instance_id - The ID of the instance the IPv4 address.ip - The IPv4 address in canonical format.gateway - The gateway IP address.netmask - The IPv4 netmask in dot-decimal notation.reverse - The reverse DNS information for this IP address.