This function combines calls for multiple WHM API 1 functions.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ batch \ command='version'
{- "data": {
- "result": [
- {
- "data": {
- "hostname": "example-hosting.com"
}, - "metadata": {
- "command": "gethostname",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}, - {
- "data": {
- "version": "11.88.0.1"
}, - "metadata": {
- "command": "version",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}
]
}, - "metadata": {
- "command": "batch",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}