Create an instruction on a device
Create a new instruction for a device which boots an operating system of its own (e.g. a DPU), naming the device rather than the node it runs. This operation is only permitted when the simulation is in the ACTIVE or INACTIVE state.
Required scope: Simulation Edit (roles: Air Org Administrator, Air User)
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
DeviceInitInstructionCreateSchemaRequest
Schema for the init executor on the device route.
OR
DeviceFileInstructionCreateSchemaRequest
Schema for the file executor on the device route.
OR
DeviceShellInstructionCreateSchemaRequest
Schema for the shell executor on the device route.
Response
InitInstructionRead
Representation of a hostname assignment instruction.
OR
FileInstructionRead
Representation of an instruction that writes files to a node.
OR
ShellInstructionRead
Representation of an arbitrary shell execution instruction.
Errors
400
Bad Request Error
403
Forbidden Error
500
Internal Server Error