Data streams
akamai_datastreams
You are viewing the documentation for version 5.0.
This version introduces backwards incompatible changes. See the previous version or our migration information to upgrade.
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"
+ streams_details = [
+ {
+ contract_id = "C-0N7RAC7"
+ created_by = "jsmith"
+ created_date = "2023-06-14T19:07:11Z"
+ group_id = 12345
+ latest_version = 1
+ modified_by = "jsmith"
+ modified_date = "2023-06-14T19:07:11Z"
+ product_id = "Dynamic_Site_Accelerator"
+ properties = [
+ {
+ property_id = 12345
+ property_name = "property_name_1"
},
]
+ stream_id = 12345
+ stream_name = "Datastream_Example1"
+ stream_status = "ACTIVATED"
+ stream_version = 1
},
+ {
+ contract_id = "C-0N7RAC7"
+ created_by = "jsmith"
+ created_date = "2023-06-20T10:15:16Z"
+ group_id = 54321
+ latest_version = 1
+ modified_by = "jsmith"
+ modified_date = "2023-06-20T10:15:16Z"
+ product_id = "Dynamic_Site_Accelerator"
+ properties = [
+ {
+ property_id = 54321
+ property_name = "property_name_2"
},
]
+ stream_id = 54321
+ stream_name = "Datastream_Example2"
+ 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, pass a group_id
in the body of the query to receive details for a single group.
Attributes
Returned in the streams_details
set are your data stream's identifiers, version information, and status.
Attribute | Description |
---|---|
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 | The property IDs and names associated with 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 date and time of the data stream's creation. |
modified_by | The name of the user who activated or deactivated the stream. |
modified_date | The date and time of an activation status change. |
Updated over 1 year ago