Skip to main content
GET
/
api
/
v1
/
admin
/
migration
/
status
Obtém o status atual da migração
curl --request GET \
  --url https://services.pref.rio/app-busca-search/api/v1/admin/migration/status \
  --header 'Authorization: Bearer <token>'
{
  "backup_collection": "<string>",
  "completed_at": 123,
  "error_message": "<string>",
  "is_locked": true,
  "migrated_documents": 123,
  "progress": 123,
  "schema_version": "<string>",
  "source_collection": "<string>",
  "started_at": 123,
  "started_by": "<string>",
  "status": "idle",
  "target_collection": "<string>",
  "total_documents": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

OK

backup_collection
string
completed_at
integer
error_message
string
is_locked
boolean
migrated_documents
integer
progress
number
schema_version
string
source_collection
string
started_at
integer
started_by
string
status
enum<string>
Available options:
idle,
in_progress,
completed,
failed,
rollback
target_collection
string
total_documents
integer