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.

FTP API

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

FTPService manages FTP(S) logins for accounts (Pure-FTPd, explicit TLS). REST: /api/v1/ftp.

Method REST route Permission Streaming
GetFTPInfo GET /api/v1/ftp/info FTPAccountRead unary
ListFTPAccounts GET /api/v1/ftp/accounts FTPAccountRead unary
CreateFTPAccount POST /api/v1/ftp/accounts FTPAccountCreate unary
GetFTPAccount GET /api/v1/ftp/accounts/{id} FTPAccountRead unary
UpdateFTPAccount PATCH /api/v1/ftp/accounts/{id} FTPAccountUpdate unary
DeleteFTPAccount DELETE /api/v1/ftp/accounts/{id} FTPAccountDelete unary

/hostcraft.v1.FTPService/GetFTPInfo

/hostcraft.v1.FTPService/ListFTPAccounts

/hostcraft.v1.FTPService/CreateFTPAccount

/hostcraft.v1.FTPService/GetFTPAccount

/hostcraft.v1.FTPService/UpdateFTPAccount

/hostcraft.v1.FTPService/DeleteFTPAccount

Field Type Number Description
account_id string 1 -
login string 2 full login, or use user + domain
user string 3 -
domain string 4 -
password string 5 -
dir string 6 -
quota_mb int64 7 -
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 -
account_id string 2 -
login string 3 -
domain string 4 -
dir string 5 -
quota_mb int64 6 -
enabled bool 7 -
account_suspended bool 8 -
origin string 9 -
created_at google.protobuf.Timestamp 10 -
updated_at google.protobuf.Timestamp 11 -
Field Type Number Description
account FTPAccount 1 -
Field Type Number Description
host string 1 -
port int64 2 -
ftps string 3 explicit
passive_ports string 4 -
sftp_port int64 5 -
available bool 6 -
Field Type Number Description
id string 1 -

No fields.

Field Type Number Description
account_id string 1 -
Field Type Number Description
accounts repeated FTPAccount 1 -
Field Type Number Description
id string 1 -
password optional string 2 -
dir optional string 3 -
quota_mb optional int64 4 -
enabled optional bool 5 -