Create a private location
Server:
https://{kibana_url}
- POST /api/synthetics/private_locations
You must have all privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.
Request
-
agentPolicyIdstringrequired -
The ID of the agent policy associated with the private location.
-
geoobject -
Geographic coordinates (WGS84) for the location.
-
labelstringrequired -
A label for the private location.
-
spacesstring -
An array of space IDs where the private location is available. If it is not provided, the private location is available in all spaces.
-
An array of tags to categorize the private location.
Responses
A successful response.
Response Type: object
400
If the agentPolicyId is already used by an existing private location or if the label already exists, the API will return a 400 Bad Request response with a corresponding error message.