Retrieves detailed information about a Vultr reserved IP address using filters like label to identify the specific IP resource.
Get information about a Vultr reserved IP address.
Get the information for a reserved IP by label:
data "vultr_reserved_ip" "my_reserved_ip" {
filter {
name = "label"
values = ["my-reserved-ip-label"]
}
}
The following arguments are supported:
filter - (Required) Query parameters for finding reserved IP addresses.The filter block supports the following:
name - Attribute name to filter with.values - One or more values filter with.The following attributes are exported:
region - The ID of the region that the reserved IP is in.ip_type - The IP type of the reserved IP.subnet - The subnet of the reserved IP.subnet_size - The subnet size of the reserved IP.label - The label of the reserved IP.instance_id - The ID of the VPS the reserved IP is attached to.