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_idArguments
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.
| Argument | Required | Description |
|---|---|---|
group_id | A data stream's group ID. | |
log_type | A stream's log type. Possible values are:
CDN. |
Attributes
Returned in the streams_details set are your data stream's identifiers, version information, and status.
| Attribute | Description |
|---|---|
log_type | The stream's log type, either CDN or APPSEC. |
stream_name | The data stream's name. |
stream_id | The datastream's ID. |
stream_version | The current version of the data stream. |
group_id | The data stream's group ID. |
contract_id | The data stream's contract ID. |
properties | Applies only to a delivery stream. The properties linked to the data stream.
|
app_sec_configs | Applies only to a security stream. The security configurations linked to the data stream.
|
latest_version | The latest version of the data stream. |
product_id | The data stream's product ID. |
stream_status | The current activation status of the data stream. |
created_by | The name of the user who created the data stream. |
created_date | The timestamp for the data stream's creation. |
modified_by | The name of the user who activated or deactivated the stream. |
modified_date | The time stamp for an activation status change. |
integration_type | The integration type for the stream in DataStream. Possible values are:
|
