Data streams

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     = [
        {
          integration_type = "PM_DEPENDENT"
          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     = [
        {
          integration_type = "PM_DEPENDENT"
          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 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.
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:
  • 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.