Data set fields
akamai_datastream_dataset_fields
Get data set fields available for your products or for a single product by passing its ID.
// Get all
data "akamai_datastream_dataset_fields" "my_fields" {}
// Get one by product
data "akamai_datastream_dataset_fields" "my_fields" {
product_id = "Adaptive_Media_Delivery"
}
// Get one by log type
data "akamai_datastream_dataset_fields" "my_fields" {
log_type = "ANSWERX"
}
output "my_fields" {
value = data.akamai_datastream_dataset_fields.my_fields
}my_fields = {
dataset_fields = [
{
dataset_field_description = "The unique identifier of the stream that handled the request."
dataset_field_group = "Log information"
dataset_field_id = 999
dataset_field_json_key = "streamId"
dataset_field_name = "Stream ID"
},
{
dataset_field_description = "The Content Provider code associated with the request."
dataset_field_group = "Log information"
dataset_field_id = 1000
dataset_field_json_key = "cp"
dataset_field_name = "CP code"
},
]
id = "a1bc23de4fg567hi8jkl9mn0op"
product_id = "Adaptive_Media_Delivery"
}// Set the default values to those that you need
variable "dataset_fields" {
type = list(number)
description = "My data set fields."
default = [999, 1000]
}dataset_fields = var.dataset_fieldsArguments
To get all of your data set fields, send an empty data block. You can also send a product ID or a log type in your query to limit the results.
| Argument | Required | Description |
|---|---|---|
product_id | Filters the return by the product associated with your CDN data streams. See Product IDs for a list of possible values. | |
log_type | Filters the return by a stream's log type. Possible values are:
CDN. |
Attributes
Returned in the dataset_fields set are your products' data set field identifiers.
| Attribute | Description |
|---|---|
dataset_field_id | The data set field's ID. |
dataset_field_name | The data set field's name. |
dataset_field_json_key | The JSON key for the field in a log line. |
dataset_field_description | Any additional information about the data set field. |
dataset_field_group | The data set field's group name. |
Updated 23 days ago
Did this page help you?
