Get a private location

GET /api/synthetics/private_locations/{id}

You must have read privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.

Path parameters

  • id string Required

    A private location identifier or label.

Responses

  • 200 application/json

    A successful response.

    Hide response attributes Show response attributes object
    • The ID of the agent policy associated with the private location.

    • geo object

      Geographic coordinates (WGS84) for the location.

      Hide geo attributes Show geo attributes object
      • lat number Required

        The latitude of the location.

      • lon number Required

        The longitude of the location.

    • id string

      The unique identifier of the private location.

    • isInvalid boolean

      Indicates whether the location is invalid. If true, the location is invalid, which means the agent policy associated with the location is deleted.

    • label string

      A label for the private location.

    • The namespace of the location, which is the same as the namespace of the agent policy associated with the location.

GET /api/synthetics/private_locations/{id}
curl \
 --request GET 'https://localhost:5601/api/synthetics/private_locations/{id}' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
    "label": "Test private location",
    "id": "test-private-location-id",
    "agentPolicyId": "test-private-location-id",
    "isServiceManaged": false,
    "isInvalid": false,
    "geo": {
        "lat": 0,
        "lon": 0
    },
    "namespace": "default"
}