Skip to content

Latest commit

 

History

History
122 lines (95 loc) · 2.07 KB

cloudscale_network.md

File metadata and controls

122 lines (95 loc) · 2.07 KB

cloudscale_network

back

Index

Terraform

terraform {
  required_providers {
    cloudscale = ">= 2.3.0"
  }
}

top

Example Usage

module "cloudscale_network" {
  source = "./modules/cloudscale/r/cloudscale_network"

  # auto_create_ipv4_subnet - (optional) is a type of bool
  auto_create_ipv4_subnet = null
  # mtu - (optional) is a type of number
  mtu = null
  # name - (required) is a type of string
  name = null
  # zone_slug - (optional) is a type of string
  zone_slug = null
}

top

Variables

variable "auto_create_ipv4_subnet" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "mtu" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "zone_slug" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Resource

resource "cloudscale_network" "this" {
  # auto_create_ipv4_subnet - (optional) is a type of bool
  auto_create_ipv4_subnet = var.auto_create_ipv4_subnet
  # mtu - (optional) is a type of number
  mtu = var.mtu
  # name - (required) is a type of string
  name = var.name
  # zone_slug - (optional) is a type of string
  zone_slug = var.zone_slug
}

top

Outputs

output "href" {
  description = "returns a string"
  value       = cloudscale_network.this.href
}

output "id" {
  description = "returns a string"
  value       = cloudscale_network.this.id
}

output "mtu" {
  description = "returns a number"
  value       = cloudscale_network.this.mtu
}

output "subnets" {
  description = "returns a list of object"
  value       = cloudscale_network.this.subnets
}

output "zone_slug" {
  description = "returns a string"
  value       = cloudscale_network.this.zone_slug
}

output "this" {
  value = cloudscale_network.this
}

top