This function retrieves data on all of the system’s cPanel-managed remote storage directories.
Important:
This function requires a high-availability license.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ PRIVATE_get_remote_storage
{- "data": {
- "payload": [
- {
- "host": "nfs.example.com",
- "local_path": "/opt/cpanel/remote-storage-1234",
- "options": [
- "opt1",
- "opt2"
], - "remote_path": "/path/on/remote/server",
- "revision": "3",
- "type": "nfs"
}
]
}, - "metadata": {
- "command": "PRIVATE_get_remote_storage",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}