Finalize detection alert migrations
Finalize successful migrations of detection alerts. This replaces the original index's alias with the successfully migrated index's alias. The endpoint is idempotent; therefore, it can safely be used to poll a given migration and, upon completion, finalize it.
Responses
-
200 application/json; Elastic-Api-Version=2023-10-31
Successful response
-
400 application/json; Elastic-Api-Version=2023-10-31
Invalid input data response
-
401 application/json; Elastic-Api-Version=2023-10-31
Unsuccessful authentication response
-
500 application/json; Elastic-Api-Version=2023-10-31
Internal server error response
POST /api/detection_engine/signals/finalize_migration
curl \
-X POST https://localhost:5601/api/detection_engine/signals/finalize_migration \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"migration_ids": [
"string"
]
}
Response examples (200)
[
{
"completed": true,
"destinationIndex": "string",
"error": {
"message": "string",
"status_code": 42
},
"id": "string",
"sourceIndex": "string",
"status": "success",
"updated": "2024-05-04T09:42:00+00:00",
"version": "string"
}
]
Response examples (400)
Security_detections_api_platformerrorresponse (generated)
{
"error": "string",
"message": "string",
"statusCode": 42
}
{
"message": "string",
"status_code": 42
}
Response examples (401)
{
"error": "string",
"message": "string",
"statusCode": 42
}
Response examples (500)
{
"message": "string",
"status_code": 42
}