Data set fields
akamai_datastream_dataset_fields
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 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
data "akamai_datastream_dataset_fields" "my_fields" {
product_id = "Adaptive_Media_Delivery"
}
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"
},
]
}
// 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_fields
Arguments
To narrow down data set fields returned, pass a product_id
in the body of the query to receive data set fields for a single product.
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 over 1 year ago