Task used to run a JSON-RPC request to a remote server.
The task runs a JSON-RPC command and waits for its reply - if an error node is
present in the reply, the task fails, otherwise the tasks succeeds. The command
is run using curl and the reply is interpreted using jq.
The variables overwritten by default by the task are:
image: default image to run isbadouralix/curl-jq
Additional settings that can be passed to the task:
host: the host to send the command to; optional, if missing,127.0.0.1is usedport: the port to send the command to; optional, if missing,5000is usedpath: the HTTP path to send command to; optional, if missing, defaults to empty stringschema: the HTTP schema to be used; optional, if missing, defaults tohttpresource: mandatory, the resource appended to the path, that the command is sent tocommand: mandatory, represents the JSORPC method to be usedparams: optional parameters, expressed as dictionary, passed as params; if missing, empty dictionary{}is useed
Create a user using a JSON-RPC command:
- name: Create a User
type: oss-api
resource: user
command: addUser
part: jsonrpc
host: 127.0.0.1
port: 8080
params:
user: testing