Skip to content

Latest commit

 

History

History
167 lines (139 loc) · 5.08 KB

mso_schema_template_contract_service_graph.md

File metadata and controls

167 lines (139 loc) · 5.08 KB

mso_schema_template_contract_service_graph

back

Index

Terraform

terraform {
  required_providers {
    mso = ">= 0.1.5"
  }
}

top

Example Usage

module "mso_schema_template_contract_service_graph" {
  source = "./modules/mso/d/mso_schema_template_contract_service_graph"

  # contract_name - (required) is a type of string
  contract_name = null
  # schema_id - (required) is a type of string
  schema_id = null
  # service_graph_name - (required) is a type of string
  service_graph_name = null
  # site_id - (required) is a type of string
  site_id = null
  # template_name - (required) is a type of string
  template_name = null

  node_relationship = [{
    consumer_connector_bd_name                = null
    consumer_connector_cluster_interface      = null
    consumer_connector_redirect_policy        = null
    consumer_connector_redirect_policy_tenant = null
    consumer_subnet_ips                       = []
    provider_connector_bd_name                = null
    provider_connector_cluster_interface      = null
    provider_connector_redirect_policy        = null
    provider_connector_redirect_policy_tenant = null
    provider_subnet_ips                       = []
  }]
}

top

Variables

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

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

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

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

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

variable "node_relationship" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      consumer_connector_bd_name                = string
      consumer_connector_cluster_interface      = string
      consumer_connector_redirect_policy        = string
      consumer_connector_redirect_policy_tenant = string
      consumer_subnet_ips                       = list(string)
      provider_connector_bd_name                = string
      provider_connector_cluster_interface      = string
      provider_connector_redirect_policy        = string
      provider_connector_redirect_policy_tenant = string
      provider_subnet_ips                       = list(string)
    }
  ))
  default = []
}

top

Datasource

data "mso_schema_template_contract_service_graph" "this" {
  # contract_name - (required) is a type of string
  contract_name = var.contract_name
  # schema_id - (required) is a type of string
  schema_id = var.schema_id
  # service_graph_name - (required) is a type of string
  service_graph_name = var.service_graph_name
  # site_id - (required) is a type of string
  site_id = var.site_id
  # template_name - (required) is a type of string
  template_name = var.template_name

  dynamic "node_relationship" {
    for_each = var.node_relationship
    content {
      # consumer_connector_bd_name - (optional) is a type of string
      consumer_connector_bd_name = node_relationship.value["consumer_connector_bd_name"]
      # consumer_connector_cluster_interface - (optional) is a type of string
      consumer_connector_cluster_interface = node_relationship.value["consumer_connector_cluster_interface"]
      # consumer_connector_redirect_policy - (optional) is a type of string
      consumer_connector_redirect_policy = node_relationship.value["consumer_connector_redirect_policy"]
      # consumer_connector_redirect_policy_tenant - (optional) is a type of string
      consumer_connector_redirect_policy_tenant = node_relationship.value["consumer_connector_redirect_policy_tenant"]
      # consumer_subnet_ips - (optional) is a type of list of string
      consumer_subnet_ips = node_relationship.value["consumer_subnet_ips"]
      # provider_connector_bd_name - (optional) is a type of string
      provider_connector_bd_name = node_relationship.value["provider_connector_bd_name"]
      # provider_connector_cluster_interface - (optional) is a type of string
      provider_connector_cluster_interface = node_relationship.value["provider_connector_cluster_interface"]
      # provider_connector_redirect_policy - (optional) is a type of string
      provider_connector_redirect_policy = node_relationship.value["provider_connector_redirect_policy"]
      # provider_connector_redirect_policy_tenant - (optional) is a type of string
      provider_connector_redirect_policy_tenant = node_relationship.value["provider_connector_redirect_policy_tenant"]
      # provider_subnet_ips - (optional) is a type of list of string
      provider_subnet_ips = node_relationship.value["provider_subnet_ips"]
    }
  }

}

top

Outputs

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

output "this" {
  value = mso_schema_template_contract_service_graph.this
}

top