Workspaces
Get workspace configs
Retrieves the configuration settings for a specified workspace, including asset discovery and auto-enablement settings.
GET
/
api
/
workspaces
/
configs
Get workspace configs
curl --request GET \
--url https://{baseUrl}/api/v1/api/workspaces/configsimport requests
url = "https://{baseUrl}/api/v1/api/workspaces/configs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/workspaces/configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workspaces/configs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"isAssetsDiscovery": {
"value": {},
"type": "<string>",
"example": {},
"description": {},
"title": "<string>"
},
"isAutoEnableAssetAfterDiscovered": {
"value": {},
"type": "<string>",
"example": {},
"description": {},
"title": "<string>"
}
}⌘I
Get workspace configs
curl --request GET \
--url https://{baseUrl}/api/v1/api/workspaces/configsimport requests
url = "https://{baseUrl}/api/v1/api/workspaces/configs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/workspaces/configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workspaces/configs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"isAssetsDiscovery": {
"value": {},
"type": "<string>",
"example": {},
"description": {},
"title": "<string>"
},
"isAutoEnableAssetAfterDiscovered": {
"value": {},
"type": "<string>",
"example": {},
"description": {},
"title": "<string>"
}
}