Configuration
Get environment config
Get environment variables from the daemon’s configuration.
GET
/
api
/
config
/
env
cURL
curl http://localhost:18080/api/config/envconst options = {method: 'GET'};
fetch('http://localhost:18080/api/config/env', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/config/env"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/config/env"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"envVars": {}
}⌘I
cURL
curl http://localhost:18080/api/config/envconst options = {method: 'GET'};
fetch('http://localhost:18080/api/config/env', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:18080/api/config/env"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:18080/api/config/env"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"envVars": {}
}
