Get calendar configuration info Generally available; Added in 6.2.0
Path parameters
-
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.
Query parameters
-
Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier.
-
Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit 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"