GuideReference
TrainingSupportCommunity
Guide

CIDR blocks

akamai_iam_cidr_blocks

Get a list of all CIDR blocks available to you on your allowlist.

data "akamai_iam_cidr_blocks" "my_cird_blocks" {
}

output "my_cird_blocks" {
  value = data.akamai_iam_cidr_blocks.my_cird_blocks
}
Changes to Outputs:
  + my_cird_blocks = {
      + cidr_blocks = [
          + {
              + actions       = {
                  + delete = true
                  + edit   = true
                }
              + cidr_block    = "123.45.6.7/89"
              + cidr_block_id = 12345
              + comments      = "EMEA Region"
              + created_by    = "jsmith@email.com"
              + created_date  = "2023-02-22T15:01:53Z"
              + enabled       = true
              + modified_by   = "jsmith@email.com"
              + modified_date = "2024-03-26T15:41:50Z"
            },
          + {
              + actions       = {
                  + delete = true
                  + edit   = true
                }
              + cidr_block    = "987.6.5.4/32"
              + cidr_block_id = 98765
              + comments      = "APAC Region"
              + created_by    = "janesmith@email.com"
              + created_date  = "2023-10-28T16:08:15Z"
              + enabled       = true
              + modified_by   = "janesmith@email.com"
              + modified_date = "2024-09-18T16:08:15Z"
            },
        ]
    }

Argument

The data source is passed empty. The config_section argument in the Akamai provider block of your Terraform configuration provides the necessary information.

Attributes

Returned to you is a cird_blocks list with details about each CIRD block record.

AttributeDescription
actionsThe operations you can perform on the CIDR list.
  • delete. Whether you can delete the CIDR block.
    • true. You can delete the CIDR block.
    • false. You can't.
  • edit. Whether you can update the CIDR block.
    • true. You can update the CIDR block.
    • false. You can't.
cidr_block_idThe CIDR block's ID.
cidr_blockThe value of an IP address or IP address range.
commentsThe human-readable details about your CIDR block.
created_byThe user who created the CIDR block.
created_dateThe date when the CIDR block was created in ISO 8601 format.
enabledWhether the CIDR block is enabled.
  • true. The CIDR block is enabled.
  • false. It's disabled.
modified_byThe user who last edited the CIDR block.
modified_dateThe date when the CIDR block was last modified in ISO 8601 format.