API удаления календарей
Удаляет календарь.
Запрос
DELETE _ml/calendars/<calendar_id>
Предварительные условия
Требуется привилегия manage_ml кластера. Эта привилегия включена в встроенную роль machine_learning_admin.
Описание
Этот API удаляет все запланированные события из календаря, а затем удаляет сам календарь.
Параметры пути
-
<calendar_id> - (Обязательно, строка) Строка, уникально идентифицирующая календарь.
Примеры
resp = client.ml.delete_calendar(
calendar_id="planned-outages",
)
print(resp) response = client.ml.delete_calendar( calendar_id: 'planned-outages' ) puts response
const response = await client.ml.deleteCalendar({
calendar_id: "planned-outages",
});
console.log(response); DELETE _ml/calendars/planned-outages
При удалении календаря вы получите следующие результаты:
{
"acknowledged": true
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-calendar.html