Template: {
    apiVersion?: string;
    kind?: TemplateKind;
    metadata?: { name?: string };
    spec?: any;
}[]

Type declaration

  • OptionalapiVersion?: string
  • Optionalkind?: TemplateKind
  • Optionalmetadata?: { name?: string }

    Metadata properties used for the resource when the template is applied.

  • Optionalspec?: any

    Configuration 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:

    • A bucket:
    { "spec": {
    "name": "iot_center",
    "retentionRules": [{
    "everySeconds": 2.592e+06,
    "type": "expire"
    }]
    }
    }
    • A variable:
    { "spec": {
    "language": "flux",
    "name": "Node_Service",
    "query": "import \"influxdata/influxdb/v1\"\r\nv1.tagValues(bucket: \"iot_center\",
    tag: \"service\")",
    "type": "query"
    }
    }
MMNEPVFCICPMFPCPTTAAATR