Data streams

akamai_datastreams

Get details for your data streams or for a single group by passing its ID.

// Get all
data "akamai_datastreams" "my_datastreams" {}

// Get one
data "akamai_datastreams" "my_datastreams" {
  group_id = "12345"
}

output "my_datastreams" {
  value = data.akamai_datastreams.my_datastreams
}
my_datastreams = {
  group_id        = null
  id              = "akamai_datastreams"
  log_type        = "CDN"
  streams_details = [
    {
      app_sec_configs  = []
      contract_id      = "C-0N7RAC7"
      created_by       = "jsmith"
      created_date     = "2026-01-09T21:00:17Z"
      group_id         = 12345
      integration_type = "DS_MANAGED"
      latest_version   = 1
      log_type         = "CDN"
      modified_by      = "jsmith"
      modified_date    = "2026-01-09T21:00:17Z"
      product_id       = "Dynamic_Site_Accelerator"
      properties       = [
        {
          integration_type = "DS_MANAGED"
          property_id      = 54321
          property_name    = "property_name_1"
        },
      ]
      stream_id        = 12345
      stream_name      = "Datastream_Example1"
      stream_status    = "ACTIVATED"
      stream_version   = 1
    },
  ]
}
my_datastreams = {
  group_id        = 12345
  id              = "akamai_datastreams_12345"
  log_type        = "APPSEC"
  streams_details = [
    {
      app_sec_configs  = [
        {
          app_sec_id   = 54321
          app_sec_name = "my_security_config_1"
        },
      ]
      contract_id      = "C-0N7RAC7"
      created_by       = "jsmith"
      created_date     = "2026-06-09T07:56:10Z"
      group_id         = 12345
      integration_type = ""
      latest_version   = 1
      log_type         = "APPSEC"
      modified_by      = "jsmith"
      modified_date    = "2026-06-09T07:56:10Z"
      product_id       = ""
      properties       = []
      stream_id        = 12345
      stream_name      = "AppSec_Datastream_Example1"
      stream_status    = "ACTIVATED"
      stream_version   = 1
    },
  ]
}
variable "stream_id" {
  type        = int
  description = "My data stream's ID"
  default     = 12345
}
stream_id = var.stream_id

Arguments

To narrow down the data stream details, provide a group or log type in the body of the query to receive details about a stream.

ArgumentRequiredDescription
group_idA data stream's group ID.
log_typeA stream's log type. Possible values are:
  • CDN for delivery data streams.
  • APPSEC for security configuration data streams.
The default value is CDN.

Attributes

Returned in the streams_details set are your data stream's identifiers, version information, and status.

AttributeDescription
log_typeThe stream's log type, either CDN or APPSEC.
stream_nameThe data stream's name.
stream_idThe datastream's ID.
stream_versionThe current version of the data stream.
group_idThe data stream's group ID.
contract_idThe data stream's contract ID.
propertiesApplies only to a delivery stream. The properties linked to the data stream.

  • property_id. The property's ID.

  • property_name. The property's name.
  • integration_type. The integration type for the property in DataStream. Possible values are:

    • DS_MANAGED. The stream is created and managed directly in the DataStream API. It begins delivering logs when the property becomes active.

    • PM_DEPENDENT. The stream is created in DataStream and configured with the datastream behavior in Property Manage before it starts streaming logs. Useful for logging specific subsets of traffic.
app_sec_configsApplies only to a security stream. The security configurations linked to the data stream.

  • app_sec_id. The security configuration's ID.

  • app_sec_name. The security configuration's name.
latest_versionThe latest version of the data stream.
product_idThe data stream's product ID.
stream_statusThe current activation status of the data stream.
created_byThe name of the user who created the data stream.
created_dateThe timestamp for the data stream's creation.
modified_byThe name of the user who activated or deactivated the stream.
modified_dateThe time stamp for an activation status change.
integration_typeThe integration type for the stream in DataStream. Possible values are:

  • DS_MANAGED. The stream is created and managed directly in the DataStream API. It begins delivering logs when the property becomes active.

  • PM_DEPENDENT. The stream is created in DataStream and configured with the datastream behavior in Property Manager before it starts streaming logs. Useful for logging specific subsets of traffic.

  • HYBRID. The stream logs data from multiple properties at the same time, some of them with or without the datastream behavior configured in Property Manager.