Network Lists
akamai_networklist_network_list
Use the akamai_networklist_network_list
resource to create a network list, or to modify an existing list.
Example
provider "akamai" {
edgerc = "~/.edgerc"
}
resource "akamai_networklist_network_list" "network_list" {
name = "TestNetworkList"
type = "IP"
description = "network list description"
list = var.list
mode = "APPEND"
contract_id = "ABC-123"
group_id = 12345
}
Argument reference
The following arguments are supported:
-
name
- (Required) The name to be assigned to the network list. -
type
- (Required) The type of the network list; must be either "IP" or "GEO". -
description
- (Required) The description to be assigned to the network list. -
list
: (Optional) A list of IP addresses or locations to be included in the list, added to an existing list, or
removed from an existing list. -
mode
- (Required) A string specifying the interpretation of thelist
parameter. Must be one of the following:APPEND
- the addresses or locations listed inlist
will be added to the network listREPLACE
- the addresses or locations listed inlist
will overwrite the current contents of the network listREMOVE
- the addresses or locations listed inlist
will be removed from the network list
-
contract_id
- (Optional) The contract ID of the network list. If supplied, group_id must also be supplied. The contract_id value of an existing network list may not be modified. -
group_id
- (Optional) The group ID of the network list. If supplied, contract_id must also be supplied. The group_id value of an existing network list may not be modified.
Attributes reference
In addition to the arguments above, the following attributes are exported:
network_list_id
- The ID of the network list.sync_point
- An integer that identifies the current version of the network list; this value is incremented each time
the list is modified.
Updated 11 months ago