Create an instruction
Create a new instruction for a node. This operation is only permitted when the simulation is in the ACTIVE or INACTIVE state.
Required scope: air:simulation_edit (roles: air_org_admin, air_user)
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
InitInstructionCreateRequest
Payload required to set the hostname of a node.
OR
FileInstructionCreateRequest
Payload required to write arbitrary files to a node.
OR
ShellInstructionCreateRequest
Payload required to run arbitrary shell commands on a node.
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