terraform-provider-aci icon indicating copy to clipboard operation
terraform-provider-aci copied to clipboard

Create a new resource and data-source for "oob_external_epgs"

Open shrsr opened this issue 1 year ago • 0 comments

Specifics:

API Information:

  • Class: "mgmtInstP"
  • Distinguished Name: "uni/tn-mgmt/extmgmt-default/instp-{name}"

GUI Location:

  • tenants > mgmt > External Management Network Instance Profiles > {name}

Resource configuration using aci_rest_managed:

resource "aci_rest_managed" "oob_external_epgs" {
  depends_on = [
    aci_l3_outside.l3outs
  ]
  for_each   = { for k, v in local.l3out_external_epgs : k => v if v.epg_type == "oob" }
  dn         = "uni/tn-mgmt/extmgmt-default/instp-{name}"
  class_name = "mgmtInstP"
  content = {
    annotation = each.value.annotation != "" ? each.value.annotation : var.annotation
    name       = each.value.name
  }
}

shrsr avatar Sep 12 '22 14:09 shrsr