Get private locations
Get a list of private locations.
You must have read
privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.
GET
/api/synthetics/private_locations
curl \
--request GET 'https://localhost:5601/api/synthetics/private_locations' \
--header "Authorization: $API_KEY"
Response examples (200)
[
{
"label": "Test private location",
"id": "fleet-server-policy",
"agentPolicyId": "fleet-server-policy",
"isInvalid": false,
"geo": {
"lat": 0,
"lon": 0
},
"namespace": "default"
},
{
"label": "Test private location 2",
"id": "691225b0-6ced-11ee-8f5a-376306ee85ae",
"agentPolicyId": "691225b0-6ced-11ee-8f5a-376306ee85ae",
"isInvalid": false,
"geo": {
"lat": 0,
"lon": 0
},
"namespace": "test"
}
]