Get calendar configuration info
Generally available; Added in 6.2.0
Required authorization
- Cluster privileges:
monitor_ml
GET
/_ml/calendars
Console
GET _ml/calendars/planned-outages
resp = client.ml.get_calendars(
calendar_id="planned-outages",
)
const response = await client.ml.getCalendars({
calendar_id: "planned-outages",
});
response = client.ml.get_calendars(
calendar_id: "planned-outages"
)
$resp = $client->ml()->getCalendars([
"calendar_id" => "planned-outages",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/calendars/planned-outages"