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.

AttributeDescription
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.
propertiesThe property IDs and names associated with the data stream.
  • property_id. A property's ID.
  • property_name. A property'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 date and time of the data stream's creation.
modified_byThe name of the user who activated or deactivated the stream.
modified_dateThe date and time of an activation status change.