Create a worker
Creates a worker instance and returns a registration token. This token is tied to the resulting worker and should be provided to the Air Worker daemon running on the target host in order to complete the registration. Registration token is valid for 1 day, 0:00:00.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
fqdn
ip_address
fleet
The fleet that the worker belongs to.
cpu_arch
x86- x86ARM- ARM
flags
Behavior flags for the worker.
Response
id
created
modified
fqdn
cpu
memory
storage
available
ip_address
fleet
The fleet that the worker belongs to.
registration_token
Token to be used during worker registration. Token is valid for 1 day, 0:00:00.
cpu_arch
x86- x86ARM- ARM
flags
Behavior flags for the worker.
Errors
400
Bad Request Error
403
Forbidden Error
500
Internal Server Error