» aci_cloud_subnet

Manages ACI Cloud Subnet Note: This resource is supported in Cloud APIC only.

» Example Usage

    resource "aci_cloud_subnet" "foocloud_subnet" {
        cloud_cidr_pool_dn = "${aci_cloud_cidr_pool.example.id}"
        description        = "sample cloud subnet"
        ip                 = ""
        annotation         = "tag_subnet"
        name_alias         = "alias_subnet"
        scope              = "public"
        usage              = "user"

» Argument Reference

  • cloud_cidr_pool_dn - (Required) Distinguished name of parent CloudCIDRPool object.
  • ip - (Required) CIDR block of Object cloud_subnet.
  • annotation - (Optional) annotation for object cloud_subnet.
  • name_alias - (Optional) name_alias for object cloud_subnet.
  • scope - (Optional) The domain applicable to the capability. Allowed values are "public", "private" and "shared". Default is "private".
  • usage - (Optional) The usage of the port. This property shows how the port is used. Allowed values are "user" and "infra-router". Default is "user".

  • relation_cloud_rs_zone_attach - (Optional) Relation to class cloudZone. Cardinality - N_TO_ONE. Type - String.

  • relation_cloud_rs_subnet_to_flow_log - (Optional) Relation to class cloudAwsFlowLogPol. Cardinality - N_TO_ONE. Type - String.

» Attribute Reference

The only attribute that this resource exports is the id, which is set to the Dn of the Cloud Subnet.

» Importing

An existing Cloud Subnet can be imported into this resource via its Dn, via the following command:

terraform import aci_cloud_subnet.example <Dn>