GuideReference
Guide

CIDR block

akamai_iam_cidr_block

Create and manage CIDR blocks assigned to your allowlists. To delete a CIDR block, run terraform destroy.

resource "akamai_iam_cidr_block" "my_cidr_block" {
  cidr_block = "1.1.1.1"
  comments   = "Creating my CIDR block"
  enabled    = true
}

Arguments

The cidr_blocks argument is optional. Not providing it in the resource body creates a null object you can complete later.

Pass the required arguments for the cidr_blocks set to create or update a CIDR block.

ArgumentRequiredDescription
cidr_block✔️The value of an IP address or IP address range.
enabled✔️Whether to enable the CIDR block.
  • true enables it.
  • false disables it.
commentsA human-readable message about your CIDR block.

Attributes

There is no standard output for this resource. You can, however, add an output block to return your cidr_blocks details.

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