Optional
apiVersion?: stringOptional
kind?: TemplateKindOptional
metadata?: { name?: string }Optional
spec?: anyConfiguration properties used for the resource when the template is applied. Key-value pairs map to the specification for the resource.
The following code samples show spec
configurations for template resources:
{ "spec": {
"name": "iot_center",
"retentionRules": [{
"everySeconds": 2.592e+06,
"type": "expire"
}]
}
}
{ "spec": {
"language": "flux",
"name": "Node_Service",
"query": "import \"influxdata/influxdb/v1\"\r\nv1.tagValues(bucket: \"iot_center\",
tag: \"service\")",
"type": "query"
}
}
Metadata properties used for the resource when the template is applied.