Operator

One import with its steps and newest log lines (read-only; never a credential)

get/operator/imports/{migrationId}

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/operator/imports/{migrationId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

migrationIdstring uuid required

Response

Import

idstring uuid required
organizationIdstring uuid required
organizationNamestring required
kindstring required
statestring required
namestring required
sourceobject required

allow-listed, non-secret summary: host, siteUrl, url, repoUrl, branch, project, app, site, mode, importParentId

parentIdstring uuid nullable required

the cPanel/SFTP connection a site's import was started from

projectIdstring uuid nullable required
projectNamestring nullable required

null: no project, or it was deleted

currentStepstring nullable required

the step running now (none while the import waits)

errorCodestring nullable required
errorMessagestring nullable required
cancelRequestedAtstring nullable required

ISO-8601 timestamp

leaseExpiresAtstring nullable required

ISO-8601 timestamp

stuckboolean required

running on our side, no worker holds it and nothing happened for 15 minutes

cancelWaits'step' | 'cleanup' | 'null' nullable required

how a cancel now would end: step (a worker holds the import: it stops at its next check), cleanup (the worker first closes a Remote MySQL entry on the old server or stops the mail copies it watches), null (it ends at once)

createdAtstring required

ISO-8601 timestamp

updatedAtstring required

ISO-8601 timestamp

lastActivityAtstring required

the newest step change or log line (or the creation)

finishedAtstring nullable required

ISO-8601 timestamp

previewUrlstring nullable required
logsTotalinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.