» gridscale_ip
Get the id of an ip resource. This can be used to link ip addresses to a server.
» Example Usage
Using the ip datasource for the creation of a server:
resource "gridscale_ipv4" "ipv4name"{
name = "terraform-ipv4"
}
resource "gridscale_ipv6" "ipv6name"{
name = "terraform-ipv6"
}
resource "gridscale_server" "servername"{
name = "terra-server"
cores = 2
memory = 4
ipv4 = "${gridscale_ipv4.ipv4name.id}"
ipv6 = "${gridscale_ipv6.ipv6name.id}"
}
» Attributes Reference
The following attributes are exported:
-
id
- The UUID of the ip.