Pause a batched background migration
Pause a batched background migration
PUT
/admin/batched_background_migrations/{id}/pause
curl \
--request PUT 'https://www.gitlab.com/api/v4/admin/batched_background_migrations/{id}/pause' \
--header "Private-Token: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"database":"main"}'
Request examples
{
"database": "main"
}
Response examples (200)
{
"id": "1234",
"job_class_name": "CopyColumnUsingBackgroundMigrationJob",
"table_name": "events",
"status": "active",
"progress": 50.0,
"created_at": "2022-11-28T16:26:39+02:00"
}