back
terraform {
required_providers {
cloudscale = ">= 2.3.0"
}
}
top
module "cloudscale_floating_ip" {
source = "./modules/cloudscale/r/cloudscale_floating_ip"
# ip_version - (required) is a type of number
ip_version = null
# prefix_length - (optional) is a type of number
prefix_length = null
# region_slug - (optional) is a type of string
region_slug = null
# reverse_ptr - (optional) is a type of string
reverse_ptr = null
# server - (optional) is a type of string
server = null
# type - (optional) is a type of string
type = null
}
top
variable "ip_version" {
description = "(required)"
type = number
}
variable "prefix_length" {
description = "(optional)"
type = number
default = null
}
variable "region_slug" {
description = "(optional)"
type = string
default = null
}
variable "reverse_ptr" {
description = "(optional)"
type = string
default = null
}
variable "server" {
description = "(optional)"
type = string
default = null
}
variable "type" {
description = "(optional)"
type = string
default = null
}
top
resource "cloudscale_floating_ip" "this" {
# ip_version - (required) is a type of number
ip_version = var.ip_version
# prefix_length - (optional) is a type of number
prefix_length = var.prefix_length
# region_slug - (optional) is a type of string
region_slug = var.region_slug
# reverse_ptr - (optional) is a type of string
reverse_ptr = var.reverse_ptr
# server - (optional) is a type of string
server = var.server
# type - (optional) is a type of string
type = var.type
}
top
output "href" {
description = "returns a string"
value = cloudscale_floating_ip.this.href
}
output "id" {
description = "returns a string"
value = cloudscale_floating_ip.this.id
}
output "network" {
description = "returns a string"
value = cloudscale_floating_ip.this.network
}
output "next_hop" {
description = "returns a string"
value = cloudscale_floating_ip.this.next_hop
}
output "region_slug" {
description = "returns a string"
value = cloudscale_floating_ip.this.region_slug
}
output "reverse_ptr" {
description = "returns a string"
value = cloudscale_floating_ip.this.reverse_ptr
}
output "type" {
description = "returns a string"
value = cloudscale_floating_ip.this.type
}
output "this" {
value = cloudscale_floating_ip.this
}
top