Skip to content
Pre-release. HostCraft is in testing and not yet for sale. These docs describe the current build and may change. Join the waitlist to hear when it launches.

Transfer API

Source: daemon/proto/hostcraft/v1/transfer.proto

TransferService drives the live WHM transfer tool: remote cPanel/WHM sources reached over SSH, batch queues that pkgacct and restore each account, and the final delta sync before cutover. REST: /api/v1/restore/transfer.

Method REST route Permission Streaming
ListTransferSources GET /api/v1/restore/transfer/sources RestoreTransferRead unary
CreateTransferSource POST /api/v1/restore/transfer/sources RestoreTransferManage unary
GetTransferSource GET /api/v1/restore/transfer/sources/{id} RestoreTransferRead unary
DeleteTransferSource DELETE /api/v1/restore/transfer/sources/{id} RestoreTransferManage unary
TestTransferSource POST /api/v1/restore/transfer/sources/{id}/test RestoreTransferManage unary
RepinTransferSourceHostKey POST /api/v1/restore/transfer/sources/{id}/repin RestoreTransferManage unary
ListTransferRemoteAccounts GET /api/v1/restore/transfer/sources/{id}/accounts RestoreTransferRead unary
ListTransferBatches GET /api/v1/restore/transfer/batches RestoreTransferRead unary
CreateTransferBatch POST /api/v1/restore/transfer/batches RestoreTransferManage unary
GetTransferBatch GET /api/v1/restore/transfer/batches/{id} RestoreTransferRead unary
CancelTransferBatch POST /api/v1/restore/transfer/batches/{id}/cancel RestoreTransferManage unary
SyncTransferBatch POST /api/v1/restore/transfer/batches/{id}/sync RestoreTransferManage unary
RetryTransferItem POST /api/v1/restore/transfer/items/{id}/retry RestoreTransferManage unary
SyncTransferItem POST /api/v1/restore/transfer/items/{id}/sync RestoreTransferManage unary

/hostcraft.v1.TransferService/ListTransferSources

/hostcraft.v1.TransferService/CreateTransferSource

/hostcraft.v1.TransferService/GetTransferSource

/hostcraft.v1.TransferService/DeleteTransferSource

/hostcraft.v1.TransferService/TestTransferSource

/hostcraft.v1.TransferService/RepinTransferSourceHostKey

/hostcraft.v1.TransferService/ListTransferRemoteAccounts

/hostcraft.v1.TransferService/ListTransferBatches

/hostcraft.v1.TransferService/CreateTransferBatch

/hostcraft.v1.TransferService/GetTransferBatch

/hostcraft.v1.TransferService/CancelTransferBatch

/hostcraft.v1.TransferService/SyncTransferBatch

/hostcraft.v1.TransferService/RetryTransferItem

/hostcraft.v1.TransferService/SyncTransferItem

Field Type Number Description
id string 1 -
Field Type Number Description
source_id string 1 -
accounts repeated TransferBatchAccount 2 -
concurrency int64 3 -
target_plan_id string 4 -
target_reseller_id string 5 -
limit_overrides RestoreLimits 6 -
include_mail bool 7 -
include_dbs bool 8 -
include_dns bool 9 -
include_ssl bool 10 -
include_cron bool 11 -
include_ftp bool 12 -
ssl_via_letsencrypt bool 13 -
Field Type Number Description
name string 1 -
host string 2 -
ssh_port int64 3 -
ssh_user string 4 -
password string 5 -
private_key string 6 -
passphrase string 7 -
host_key_fingerprint string 8 -
whm_token string 9 -
whm_port int64 10 -
whm_insecure_tls bool 11 -
Field Type Number Description
id string 1 -

Empty is returned by RPCs whose REST route answers with an empty object or 204 No Content.

No fields.

Field Type Number Description
id string 1 -
Field Type Number Description
id string 1 -

No fields.

Field Type Number Description
batches repeated TransferBatch 1 -
Field Type Number Description
id string 1 -
Field Type Number Description
accounts repeated TransferRemoteAccount 1 -

No fields.

Field Type Number Description
sources repeated TransferSource 1 -
Field Type Number Description
id string 1 -
host_key_fingerprint string 2 -
Field Type Number Description
disk_quota_bytes int64 1 -
bandwidth_quota_bytes int64 2 -
max_sites int64 3 -
max_mailboxes int64 4 -
max_databases int64 5 -
max_subdomains int64 6 -
max_addon_domains int64 7 -
max_subusers int64 8 -
max_cron_jobs int64 9 -
max_ftp_users int64 10 -
Field Type Number Description
id string 1 -
Field Type Number Description
id string 1 -
Field Type Number Description
started int64 1 -
Field Type Number Description
id string 1 -
Field Type Number Description
id string 1 -
Field Type Number Description
id string 1 -
source_id string 2 -
concurrency int64 3 -
status string 4 -
created_at google.protobuf.Timestamp 5 -
finished_at google.protobuf.Timestamp 6 -
counts map<string, int64> 7 -
items repeated TransferItem 8 -
Field Type Number Description
user string 1 -
domain string 2 -
Field Type Number Description
id string 1 -
batch_id string 2 -
remote_user string 3 -
remote_domain string 4 -
status string 5 -
error string 6 -
archive_bytes int64 7 -
restore_source_id string 8 -
restore_job_id string 9 -
account_id string 10 -
started_at google.protobuf.Timestamp 11 -
finished_at google.protobuf.Timestamp 12 -
sync_status string 13 -
sync_error string 14 -
sync_workflow_id string 15 -
last_sync_at google.protobuf.Timestamp 16 -
Field Type Number Description
user string 1 -
domain string 2 -
owner string 3 -
plan string 4 -
email string 5 -
disk_used_bytes int64 6 -
suspended bool 7 -
Field Type Number Description
id string 1 -
name string 2 -
host string 3 -
ssh_port int64 4 -
ssh_user string 5 -
auth_method string 6 password | key
host_key_fingerprint string 7 -
whm_port int64 8 -
whm_insecure_tls bool 9 -
has_whm_token bool 10 -
created_at google.protobuf.Timestamp 11 -
last_checked_at google.protobuf.Timestamp 12 -
last_check_error string 13 -