Network List
akamai_networklist_network_list
Create, update, or deactivate a network list. To deactivate a network list, pass the list
argument empty with a mode
of REMOVE
.
resource "akamai_networklist_network_list" "my_network_list" {
name = "My network list"
type = "IP"
description = "My new IP network list"
list = ["123.45.678.901", "234.56.789.012", "345.67.890.123"]
mode = "APPEND"
}
my_network_lists = {
"contract_id" = "C-0N7RAC7"
"description" = "My new IP network list"
"group_id" = 12345
"id" = "123456_MYNETWORKLIST"
"list" = ["123.45.678.901", "234.56.789.012", "345.67.890.123"]
"mode" = "APPEND"
"name" = "My network list"
"network_list_id" = "123456_MYNETWORKLIST"
"sync_point" = 0
"type" = "IP"
"uniqueid" = "123456_MYNETWORKLIST"
}
Arguments
Pass all required arguments to create or update your network list.
Argument | Required | Description |
---|---|---|
name | ✔️ | Your network list's name. |
type | ✔️ | Your network list's type. One of:
|
description | ✔️ | Additional information about the network list. |
mode | ✔️ | The action to take upon apply. One of APPEND , REPLACE , or REMOVE . Initial creation uses APPEND . |
list | A list of IP addresses or locations to include, add, or remove from an existing list. To deactivate a network list, pass the an empty list, [] with a mode of REMOVE . | |
contract_id | Your contract ID. | |
group_id | Your group ID. |
Attribute
There's no default standard output. Upon apply, your network list's ID appears in the last line of the process log.
Adding an output block returns basic information about your network list.
akamai_networklist_network_list.my_network_list: Creation complete after 3s [id=123456_MYNETWORKLIST]
Attribute | Description |
---|---|
contract_id | Your contract ID. |
description | Additional information about the network list. |
group_id | Your group ID. |
id | The network list ID. |
mode | The action taken on apply. One of APPEND , REPLACE , or REMOVE . |
name | Your network list's name. |
network_list_id | The network list ID. |
sync_point | The network list version. The value automatically increments with each modification. |
type | Your network list's type. Either IP or GEO . |
uniqueid | The network list ID. |
Updated 11 months ago