{{ $OSSLink := print "/influxdb/v2/reference/urls/ "}} {{ $CloudLink := "/influxdb/cloud/reference/regions/" }} {{ $ServerlessLink := "/influxdb3/cloud-serverless/reference/regions/" }} {{ $EnterpriseLink := print "/enterprise_influxdb/v1/administration/config-data-nodes/#http-endpoint-settings" }} {{ $isInfluxDB := cond (gt (len (findRE `^/influxdb(?:3)*/|^/enterprise_influxdb/` .RelPermalink)) 0) true false }} {{ $isOSS := in .RelPermalink "/influxdb/v" }} {{ $isCloud := in .RelPermalink "/influxdb/cloud/" }} {{ $isCore := in .RelPermalink "/influxdb3/core/" }} {{ $isEnterprise := in .RelPermalink "/influxdb3/enterprise/" }} {{ $isServerless := in .RelPermalink "/influxdb3/cloud-serverless/" }} {{ $isDedicated := in .RelPermalink "/influxdb3/cloud-dedicated/" }} {{ $isClustered := in .RelPermalink "/influxdb3/clustered/" }} {{ $isEnterpriseV1 := in .RelPermalink "/enterprise_influxdb/" }} {{ .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" }} {{ else if $isCore }} {{ .Scratch.Set "modalTitle" "What is your InfluxDB 3 Core URL?" }} {{ else if $isEnterprise }} {{ .Scratch.Set "modalTitle" "What is your InfluxDB 3 Enterprise URL?" }} {{ else if $isServerless }} {{ .Scratch.Set "modalTitle" "Select your InfluxDB Cloud Serverless region" }} {{ else if $isDedicated }} {{ .Scratch.Set "modalTitle" "What is your InfluxDB Cloud Dedicated cluster URL?" }} {{ else if $isClustered }} {{ .Scratch.Set "modalTitle" "What is your InfluxDB cluster URL?" }} {{ 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 $isEnterpriseV1 }} {{ .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)_." }} {{ else if $isCore }} {{ .Scratch.Set "modalMessage" "Customize your **InfluxDB 3 Core URL** and we'll update code examples for you." }} {{ else if $isEnterprise }} {{ .Scratch.Set "modalMessage" "Customize your **InfluxDB 3 Enterprise URL** and we'll update code examples for you." }} {{ else if $isServerless }} {{ .Scratch.Set "modalMessage" "Select your **InfluxDB Cloud Serverless region** and we'll customize code examples for you." }} {{ else if $isDedicated }} {{ .Scratch.Set "modalMessage" "Enter your **InfluxDB Cloud Dedicated cluster URL** and we'll update code examples for you." }} {{ else if $isClustered }} {{ .Scratch.Set "modalMessage" "Enter your **InfluxDB cluster URL** and we'll update code examples for you." }} {{ 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 $isEnterpriseV1 }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB Enterprise HTTP settings](" $EnterpriseLink ")") }} {{ else if $isServerless }} {{ .Scratch.Set "modalRefLinks" (print "[InfluxDB Cloud Serverless regions](" $ServerlessLink ")") }} {{ 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 }} {{ $filterServerless := .filterServerless | default false }} {{ $formID := .formID }} {{ $initialState := .initialState | default "" }}
{{ .name }}