CIDR map

akamai_gtm_cidrmap

Create, update, and delete CIDR maps.

resource "akamai_gtm_cidrmap" "my_cidrmap" {
    domain = "my_domain.akadns.net"
    name = "my_cidrmap"
    default_datacenter {
        datacenter_id = 1234
        nickname = "my_cidr_blocks"
    }
}
my_cidrmap = {
  "assignment" = tolist([])
  "default_datacenter" = tolist([
    {
      "datacenter_id" = 1234
      "nickname" = "my_cidr_blocks"
    },
  ])
  "domain" = "my_domain.akadns.net"
  "id" = "my_domain.akadns.net:my_cidrmap"
  "name" = "my_cidrmap"
  "wait_on_complete" = true
}

Arguments

Send your domain, datacenter information, and a name for the map.

Important: Map names are immutable. Attempting to change the name of an existing map creates a new map.

ArgumentRequiredDescription
domainThe GTM Domain name for the CIDR map.
nameThe map's name.
default_datacenterA placeholder for all other CIDR blocks not found in these CIDR blocks. Contains:
  • datacenter_id. A unique identifier for an existing data center in the domain.
  • nickname. A descriptive label for all other CIDR blocks, up to 128 characters.
wait_on_completeA boolean that, if true, waits for transaction to complete.
assignmentInformation about CIDR block grouping. You can have multiple entries for this argument. Contains:
  • datacenter_id. A unique identifier for an existing data center in the domain.
  • nickname. A descriptive label for the group.
  • blocks. Specifies an array of CIDR blocks.

Attributes

Returned to you is a mirror of your declaration with an additional property of id. This ID is an amalgamation of your domain and the name you've given the map. For example, "id" = "my_domain.akadns.net:my_cidrmap".