Clean up detection alert migrations
deprecated
Server:
https://{kibana_url}
- DELETE /api/detection_engine/signals/migration
- DELETE /s/{space_id}/api/detection_engine/signals/migration
Refer to Spaces for more information.
Migrations favor data integrity over shard size. Consequently, unused or orphaned indices are artifacts of the migration process. A successful migration will result in both the old and new indices being present. As such, the old, orphaned index can (and likely should) be deleted.
While you can delete these indices manually, the endpoint accomplishes this task by applying a deletion policy to the relevant index, causing it to be deleted after 30 days. It also deletes other artifacts specific to the migration implementation.
Request
Array of migration_ids to cleanup
-
migration_idsstring · min: 1required
Responses
Successful response
Response Type: object
-
destinationIndexstringrequired -
errorobject -
messagestringrequired -
status_codeintegerrequired -
idstringrequired -
sourceIndexstringrequired -
statusrequired -
Values:
successfailurepending -
updatedstringrequired -
versionstringrequired
Invalid input data response
One of:
-
errorstringrequired -
messagestringrequired -
statusCodeintegerrequired
-
messagestringrequired -
status_codeintegerrequired
Unsuccessful authentication response
-
errorstringrequired -
messagestringrequired -
statusCodeintegerrequired
Internal server error response
-
messagestringrequired -
status_codeintegerrequired