GuideReference
TrainingSupportCommunity
Guide

IP Geo

akamai_appsec_ip_geo

Get details about your IP/Geo settings for your network or client lists.

data "akamai_appsec_ip_geo" "my_ip_geo_list" {
  config_id          = 12345
  security_policy_id = "abc1_234567"
}

output "my_ip_geo_list" {
  value = data.akamai_appsec_ip_geo.my_ip_geo_list
}
Changes to Outputs:
  + my_ip_geo_list = {
      + asn_network_lists          = []
      + config_id                  = 12345
      + exception_ip_network_lists = []
      + geo_network_lists          = [
          + "456_GEOLIST",
        ]
      + id                         = "12345"
      + ip_network_lists           = [
          + "123_IPLIST",
        ]
      + mode                       = "block"
      + output_text                = <<-EOT
            +--------------------+
            | IP/Geo Firewall    |
            +--------------------+
            | BLOCK              |
            +--------------------+
            | blockSpecificIPGeo |
            +--------------------+
        EOT
      + security_policy_id         = "abc1_234567"
      + ukraine_geo_control_action = "none"
    }

Arguments

Pass your security configuration and policy IDs to get details about your lists.

ArgumentRequiredDescription
config_id✔️Your security configuration ID.
security_policy_id✔️Your security policy ID.

Attributes

Returned are details about your available network lists by type.

AttributeDescription
asn_network_listsA list of available ASN network or client lists.
config_idYour security configuration's ID.
exception_ip_network_listsThe network or client lists allowed through the firewall regardless of the values assigned to mode, geo_network_lists, and ip_network_lists.
geo_network_listsA list of available Geo network or client lists.
ip_network_listsA list of available IP network or client lists.
modeThe IP/Geo firewall actions. Possible values are:
  • block. Prevents networks on the IP and geographic network and client lists from passing through the firewall.
  • allow. Allows networks on the IP and geographic network and client lists to pass through the firewall.
output-textA table representation of your IP/Geo lists' details.
security_policy_idYour security policy ID.
ukraine_geo_control_actionThe action settings for Ukraine Geo control. Possible values are:
  • alert
  • deny
  • done