GuideReference
TrainingSupportCommunity
Guide

Application load balancer

akamai_cloudlets_application_load_balancer

Get details about an application load balancer configuration for a given policy version.

data "akamai_cloudlets_application_load_balancer" "my_alb" {
  origin_id = "my_alb"
}
Changes to Outputs:
  + my_alb = {
      + balancing_type     = "PERFORMANCE"
      + created_by         = "jsmith"
      + created_date       = "2018-10-16T07:21:36.857Z"
      + data_centers       = [
          + {
              + city                              = "London"
              + cloud_server_host_header_override = true
              + cloud_service                     = true
              + continent                         = "EU"
              + country                           = "GB"
              + hostname                          = "my_alb.com"
              + latitude                          = 51.1657
              + liveness_hosts                    = []
              + longitude                         = 10.4515
              + origin_id                         = "Origin1"
              + percent                           = 50
              + state_or_province                 = ""
            },
          + {
              + city                              = "dallas"
              + cloud_server_host_header_override = true
              + cloud_service                     = true
              + continent                         = "NA"
              + country                           = "US"
              + hostname                          = "my_alb.com"
              + latitude                          = 51.1657
              + liveness_hosts                    = []
              + longitude                         = 10.4515
              + origin_id                         = "Origin2"
              + percent                           = 50
              + state_or_province                 = ""
            },
        ]
      + deleted            = false
      + description        = "Initial ALB setup."
      + id                 = "my_alb"
      + immutable          = false
      + last_modified_by   = "jsmith"
      + last_modified_date = "2023-12-07T07:33:19.022Z"
      + liveness_settings  = []
      + origin_id          = "my_alb"
      + type               = "APPLICATION_LOAD_BALANCER"
      + version            = 2
      + warnings           = jsonencode([])
    }

Arguments

Pass an origin ID in the body of the data block to get its details.

ArgumentRequiredDescription
origin_idA user created ID that represents a data center for an application load balancer implementation. Alphanumeric characters and underscores only, and the first and last characters must be alphanumeric.
Note:. The application load balancer cloudlet only supports a setting of APPLICATION_LOAD_BALANCER in the origin behavior of your property's rules.
versionThe version number of a load balancing configuration.

Attributes

Returned are details about your load balancer configuration.

AttributeDescription
descriptionA human-readable description about your load balancing configuration.
typeThe type of conditional origin. The application load balancer cloudlet only supports APPLICATION_LOAD_BALANCER.
balancing_typeThe type of load balancing. Value is one of WEIGHTED or PERFORMANCE.
created_byThe name of the user who created the load balancing configuration.
created_dateThe ISO 8601 formatted create date for a load balancer configuration.
deletedWhether the conditional origin version has been deleted. If false, you can use the version again.
immutableWhether you can edit the load balancing version. The default is false but automatically becomes true with the first activation of a load balancer configuration version.
last_modified_byThe user who last modified the load balancing configuration.
last_modified_dateThe ISO 8601 formatted last modification date for a load balancer configuration.
warningsA list of warnings that occurred during the load balancer configuration activation.
data_centersThe conditional origins used as data centers in an application load balancer implementation. Contains:
  • city. The city in which the data center is located.
  • cloud_server_host_header_override. Whether the cloud server host header is overridden.
  • cloud_service. Whether the data center is a cloud service.
  • continent. The continent code.
  • country. The country code for the country in which the data center is located.
  • hostname. The name of the host to use as a conditional origin.
  • latitude. The latitude for the data center. Value can be up six decimal places.
  • liveness_hosts. A list of the origin servers used to poll data centers in an application load balancer configuration. Servers need to support basic HTTP polling.
  • longitude. The longitude for the data center. Value can be up six decimal places.
  • origin_id. A conditional origin ID.
  • percent. The percent of traffic that is sent to the data center. The total for all data centers needs to equal 100%.
  • state_or_province. The state, province, or region where the data center is located.
liveness_settingsHealth details for a load balanced data center.
host_headerThe host header for a liveness HTTP request.
additional_headersThe additional case-insensitive HTTP header names included mapped to the liveness testing requests.
intervalThe frequency of liveness tests in seconds.
pathThe path to the test object used for liveness testing.
peer_certificate_verificationWhether to validate the origin certificate for an HTTPS request.
portThe port for the test object. The default port is 80 for HTTP and 443 for HTTPS.
protocolThe protocol or scheme for the database, either HTTP or HTTPS.
request_stringThe request used for TCP and TCPS tests.
response_stringThe response used for TCP and TCPS tests.
status_3xx_failureWhether the the liveness test fails if a request returns a 3xx redirect status code.
status_4xx_failureWhether the liveness test fails if a request returns a 4xx client error status code.
status_5xx_failureWhether the liveness test fails if a request returns a 5xx server error status code.
timeoutThe number of seconds the system waits before failing the liveness test.