1. Add support for execute step-type
2. Add command and arguments for execute
3. Add step-id
Note that in the future, step-type will be removed, and the agent will only execute commands.
@@ -538,16 +538,21 @@ definitions:
enum:
- hardaware-info
- connectivity-check
- - debug
+ - execute
step:
type: object
properties:
step-type:
$ref: '#/definitions/step-type'
- data:
+ step-id:
+ type: string
+ command:
+ type: string
+ args:
+ type: array
+ items:
type: string
- format: json
steps-reply:
type: array
@@ -557,8 +562,8 @@ definitions:
step-reply:
type: object
properties:
- step-type:
- $ref: '#/definitions/step-type'
+ step-id:
+ type: string
exit-code:
type: integer
output:
