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.

IPAddress API

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

IPAddressService manages the server IP pool (the WHM "IP Functions" set): adding and discovering addresses and assigning a dedicated IP to an account or site. Assign and release run as workflows. REST: /api/v1/ips.

Method REST route Permission Streaming
ListIPAddresses GET /api/v1/ips IPAddressRead unary
AddIPAddress POST /api/v1/ips IPAddressManage unary
DiscoverIPAddresses POST /api/v1/ips/discover IPAddressManage unary
GetIPAddress GET /api/v1/ips/{address} IPAddressRead unary
UpdateIPAddress PATCH /api/v1/ips/{address} IPAddressManage unary
RemoveIPAddress DELETE /api/v1/ips/{address} IPAddressManage unary
AssignIPAddress POST /api/v1/ips/{address}/assign IPAddressAssign unary
ReleaseIPAddress POST /api/v1/ips/{address}/release IPAddressAssign unary

/hostcraft.v1.IPAddressService/ListIPAddresses

/hostcraft.v1.IPAddressService/AddIPAddress

/hostcraft.v1.IPAddressService/DiscoverIPAddresses

/hostcraft.v1.IPAddressService/GetIPAddress

/hostcraft.v1.IPAddressService/UpdateIPAddress

/hostcraft.v1.IPAddressService/RemoveIPAddress

/hostcraft.v1.IPAddressService/AssignIPAddress

/hostcraft.v1.IPAddressService/ReleaseIPAddress

Field Type Number Description
address string 1 -
note string 2 -
Field Type Number Description
address string 1 -
account_id string 2 -
site_id string 3 -

No fields.

Field Type Number Description
added int64 1 -

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

No fields.

Field Type Number Description
address string 1 -
Field Type Number Description
address string 1 -
family int64 2 4 or 6
interface string 3 -
bound bool 4 -
shared bool 5 -
note string 6 -
account_id string 7 -
site_id string 8 -
site_fqdn string 9 -
assigned_at google.protobuf.Timestamp 10 -
created_at google.protobuf.Timestamp 11 -
Field Type Number Description
address IPAddress 1 -
Field Type Number Description
workflow_id string 1 -

No fields.

Field Type Number Description
addresses repeated IPAddress 1 -
Field Type Number Description
address string 1 -
Field Type Number Description
address string 1 -
Field Type Number Description
address string 1 -
note string 2 -