back
terraform {
required_providers {
gridscale = ">= 1.8.4"
}
}
top
module "gridscale_ipv4" {
source = "./modules/gridscale/d/gridscale_ipv4"
# labels - (optional) is a type of set of string
labels = []
# resource_id - (required) is a type of string
resource_id = null
}
top
variable "labels" {
description = "(optional) - List of labels."
type = set(string)
default = null
}
variable "resource_id" {
description = "(required) - ID of a resource"
type = string
}
top
data "gridscale_ipv4" "this" {
# labels - (optional) is a type of set of string
labels = var.labels
# resource_id - (required) is a type of string
resource_id = var.resource_id
}
top
output "change_time" {
description = "returns a string"
value = data.gridscale_ipv4.this.change_time
}
output "create_time" {
description = "returns a string"
value = data.gridscale_ipv4.this.create_time
}
output "current_price" {
description = "returns a number"
value = data.gridscale_ipv4.this.current_price
}
output "delete_block" {
description = "returns a bool"
value = data.gridscale_ipv4.this.delete_block
}
output "failover" {
description = "returns a bool"
value = data.gridscale_ipv4.this.failover
}
output "id" {
description = "returns a string"
value = data.gridscale_ipv4.this.id
}
output "ip" {
description = "returns a string"
value = data.gridscale_ipv4.this.ip
}
output "location_country" {
description = "returns a string"
value = data.gridscale_ipv4.this.location_country
}
output "location_iata" {
description = "returns a string"
value = data.gridscale_ipv4.this.location_iata
}
output "location_name" {
description = "returns a string"
value = data.gridscale_ipv4.this.location_name
}
output "location_uuid" {
description = "returns a string"
value = data.gridscale_ipv4.this.location_uuid
}
output "name" {
description = "returns a string"
value = data.gridscale_ipv4.this.name
}
output "prefix" {
description = "returns a string"
value = data.gridscale_ipv4.this.prefix
}
output "reverse_dns" {
description = "returns a string"
value = data.gridscale_ipv4.this.reverse_dns
}
output "status" {
description = "returns a string"
value = data.gridscale_ipv4.this.status
}
output "usage_in_minutes" {
description = "returns a number"
value = data.gridscale_ipv4.this.usage_in_minutes
}
output "this" {
value = gridscale_ipv4.this
}
top