Get calendar configuration info
Generally available
Required authorization
- Cluster privileges:
monitor_ml
Path parameters
-
calendar_id
string Required A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using
_all
or*
or by omitting the calendar identifier.
GET
/_ml/calendars/{calendar_id}
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"