I have seen a couple of blogs out there that claim one can simply use the pvesh command without any parameters and it will drop into an interactive mode where one can show the calls that can be done and a particular level. It doesn't work like that for me though and the documentation is really bad on the API imho.
I can start with
and then press <tab>, which will do an autocomplete listing and in that I can sort of figure out what the options are. Is that really the official way to figure out what the API can provide?
Code:
NodeA:~# pvesh
ERROR: no command specified
USAGE: pvesh <COMMAND> [ARGS] [OPTIONS]
pvesh create <api_path> [OPTIONS] [FORMAT_OPTIONS]
pvesh delete <api_path> [OPTIONS] [FORMAT_OPTIONS]
pvesh get <api_path> [OPTIONS] [FORMAT_OPTIONS]
pvesh ls <api_path> [OPTIONS] [FORMAT_OPTIONS]
pvesh set <api_path> [OPTIONS] [FORMAT_OPTIONS]
pvesh usage <api_path> [OPTIONS]
pvesh help [<extra-args>] [OPTIONS]
I can start with
Code:
pvesh get /cluster/