This function combines calls for multiple UAPI functions and performs them in order.
Note:
Batch::strict
function does not run further function calls in the list.required | Array of strings or objects [ 2 .. 3 ] items A UAPI function call, encoded as a JSON array with two or three items:
To submit multiple commands, duplicate the parameter name, or index all parameter names and increment the index for each one.
command=["command=[\"PasswdStrength\",\"get_required_strength\",{\"app\":\"webdisk\"}]","command=[\"SSH\",\"get_port\"]"] command=["command-0=[\"PasswdStrength\",\"get_required_strength\",{\"app\":\"webdisk\"}]","command-1=[\"SSH\",\"get_port\"]"] |
uapi --output=jsonpretty --user=username Batch strict command-0='[ "PasswdStrength", "get_required_strength", { "app": "webdisk"} ]' command-1='["SSH","get_port"]'
{- "apiversion": 3,
- "func": "strict",
- "module": "Batch",
- "result": {
- "data": [
- {
- "data": {
- "strength": 65
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}, - {
- "data": {
- "port": 22
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}