Get enrollment settings
Query parameters
-
agentPolicyId string
An agent policy ID to scope the enrollment settings to. For example, that policy's Fleet Server host, its proxy, download location, etc. If not provided, the default Fleet Server policy is used (if any).
GET /settings/enrollment
curl \
-X GET https://localhost:5601/settings/enrollment
Response examples (200)
{
"download_source": {
"host": "string",
"id": "string",
"is_default": true,
"name": "string",
"proxy_id": "string"
},
"fleet_server": {
"has_active": true,
"host": {
"host_urls": [
"string"
],
"id": "string",
"is_default": true,
"is_internal": true,
"is_preconfigured": true,
"name": "string",
"proxy_id": "string"
},
"host_proxy": {
"certificate": "string",
"certificate_authorities": "string",
"certificate_key": "string",
"id": "string",
"name": "string",
"proxy_headers": {},
"url": "string"
},
"policies": [
{
"download_source_id": "string",
"fleet_server_host_id": "string",
"has_fleet_server": true,
"id": "string",
"is_default_fleet_server": true,
"is_managed": true,
"name": "string"
}
]
}
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}