Skip to content

Latest commit

 

History

History
181 lines (147 loc) · 3.32 KB

aci_subnet.md

File metadata and controls

181 lines (147 loc) · 3.32 KB

aci_subnet

back

Index

Terraform

terraform {
  required_providers {
    aci = ">= 0.5.4"
  }
}

top

Example Usage

module "aci_subnet" {
  source = "./modules/aci/d/aci_subnet"

  # annotation - (optional) is a type of string
  annotation = null
  # ctrl - (optional) is a type of list of string
  ctrl = []
  # description - (optional) is a type of string
  description = null
  # ip - (required) is a type of string
  ip = null
  # name_alias - (optional) is a type of string
  name_alias = null
  # parent_dn - (required) is a type of string
  parent_dn = null
  # preferred - (optional) is a type of string
  preferred = null
  # scope - (optional) is a type of list of string
  scope = []
  # virtual - (optional) is a type of string
  virtual = null
}

top

Variables

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

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

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

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

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

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

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

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

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

top

Datasource

data "aci_subnet" "this" {
  # annotation - (optional) is a type of string
  annotation = var.annotation
  # ctrl - (optional) is a type of list of string
  ctrl = var.ctrl
  # description - (optional) is a type of string
  description = var.description
  # ip - (required) is a type of string
  ip = var.ip
  # name_alias - (optional) is a type of string
  name_alias = var.name_alias
  # parent_dn - (required) is a type of string
  parent_dn = var.parent_dn
  # preferred - (optional) is a type of string
  preferred = var.preferred
  # scope - (optional) is a type of list of string
  scope = var.scope
  # virtual - (optional) is a type of string
  virtual = var.virtual
}

top

Outputs

output "ctrl" {
  description = "returns a list of string"
  value       = data.aci_subnet.this.ctrl
}

output "description" {
  description = "returns a string"
  value       = data.aci_subnet.this.description
}

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

output "name_alias" {
  description = "returns a string"
  value       = data.aci_subnet.this.name_alias
}

output "preferred" {
  description = "returns a string"
  value       = data.aci_subnet.this.preferred
}

output "scope" {
  description = "returns a list of string"
  value       = data.aci_subnet.this.scope
}

output "virtual" {
  description = "returns a string"
  value       = data.aci_subnet.this.virtual
}

output "this" {
  value = aci_subnet.this
}

top