Provides details about an IPv4 address assigned to a Vultr instance
Provides a Vultr instance IPv4 resource. This can be used to create, read, and modify a IPv4 address. instance is rebooted by default.
Create a new IPv4 address for a instance:
resource "vultr_instance" "my_instance" {
plan = "vc2-1c-1gb"
region = "ewr"
os_id = 167
enable_ipv6 = true
}
resource "vultr_instance_ipv4" "my_instance_ipv4" {
instance_id = "${vultr_instance.my_instance.id}"
reboot = false
}
The following arguments are supported:
instance_id
- (Required) The ID of the instance to be assigned the IPv4 address.reboot
- (Optional) Default true. Determines whether or not the server is rebooted after adding the IPv4 address.The following attributes are exported:
id
- The ID is the IPv4 address in canonical format.instance_id
- The ID of the server the IPv4 was set for.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.
No comments yet.