Spaces method and path for this operation:
get /s/{space_id}/api/apm/settings/agent-configuration/environments
Refer to Spaces for more information.
Retrieve the available environments for a given service, to be used in agent configuration. You must have read privileges for the APM and User Experience feature in Kibana. If serviceName is omitted, environments across all services are returned.
GET
/api/apm/settings/agent-configuration/environments
curl \
--request GET 'https://<KIBANA_URL>/api/apm/settings/agent-configuration/environments' \
--header "Authorization: $API_KEY" \
--header "elastic-api-version: 2023-10-31"
Response examples (200)
An example of a successful response from `GET /api/apm/settings/agent-configuration/environments`.
{
"environments": [
{
"alreadyConfigured": true,
"name": "production"
},
{
"alreadyConfigured": false,
"name": "development"
},
{
"alreadyConfigured": false,
"name": "ALL_OPTION_VALUE"
}
]
}