{{ $latestInfluxDBVersion := cond (isset .Site.Data.products.influxdb "latest_override" ) .Site.Data.products.influxdb.latest_override .Site.Data.products.influxdb.latest }} {{ $latestEnterpriseVersion := .Site.Data.products.enterprise_influxdb.latest }} {{ $OSSLink := print "/influxdb/" $latestInfluxDBVersion "/reference/urls/ "}} {{ $CloudLink := "/influxdb/cloud/reference/regions/" }} {{ $EnterpriseLink := print "/enterprise_influxdb/" $latestEnterpriseVersion "/administration/config-data-nodes/#http-endpoint-settings" }} {{ $isInfluxDB := cond (gt (len (findRE `^/influxdb/|^/enterprise_influxdb/` .RelPermalink)) 0) true false }} {{ $isOSS := cond (in .RelPermalink "/influxdb/v") true false }} {{ $isCloud := cond (in .RelPermalink "/influxdb/cloud/") true false }} {{ $isEnterprise := cond (in .RelPermalink "/enterprise_influxdb/") true false }} {{ .Scratch.Set "modalTitle" "Where are you running InfluxDB?" }} {{ if $isOSS }} {{ .Scratch.Set "modalTitle" "What is your InfluxDB OSS URL?"}} {{ else if $isCloud }} {{ .Scratch.Set "modalTitle" "Select your InfluxDB Cloud region" }} {{ end }} {{ .Scratch.Set "modalMessage" "Select your **InfluxDB Cloud region and cluster** or your **InfluxDB OSS URL** and we'll customize code examples for you. _[Identify your InfluxDB Cloud cluster](/influxdb/cloud/reference/regions/#regions-with-multiple-clusters)_." }} {{ if $isOSS }} {{ .Scratch.Set "modalMessage" "Customize your **InfluxDB OSS URL** and we'll update code examples for you." }} {{ else if $isEnterprise }} {{ .Scratch.Set "modalMessage" "Customize your **InfluxDB Enterprise URL** and we'll update code examples for you." }} {{ else if $isCloud }} {{ .Scratch.Set "modalMessage" "Select your **InfluxDB Cloud region and cluster** and we'll customize code examples for you. _[Identify your InfluxDB Cloud cluster](/influxdb/cloud/reference/regions/#regions-with-multiple-clusters)_." }} {{ end }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB Cloud regions](" $CloudLink ") or [InfluxDB OSS URLs](" $OSSLink ")") }} {{ if $isOSS }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB OSS URLs](" $OSSLink ")") }} {{ else if $isEnterprise }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB Enterprise HTTP settings](" $EnterpriseLink ")") }} {{ else if $isCloud }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB Cloud regions](" $CloudLink ")") }} {{ end }} {{ $modalTitle := .Scratch.Get "modalTitle" }} {{ $modalMessage := .Scratch.Get "modalMessage" }} {{ $modalRefLinks := .Scratch.Get "modalRefLinks" }} {{ define "productSection" }} {{ $p := .product }} {{ $formID := .formID }} {{ $initialState := .initialState | default "" }}
{{ .name }}