From 17eb42a2fc6b78f01d1d3d2bb8a419c23a0b2822 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 26 Jul 2018 15:18:45 +0200 Subject: [PATCH] add pvesh.adoc --- pve-admin-guide.adoc | 8 +++ pvesh.1-synopsis.adoc | 135 ++++++++++++++++++++++++++++++++++++++++++ pvesh.adoc | 51 ++++++++++++++++ 3 files changed, 194 insertions(+) create mode 100644 pvesh.1-synopsis.adoc create mode 100644 pvesh.adoc diff --git a/pve-admin-guide.adoc b/pve-admin-guide.adoc index 6e9f19a..63a2718 100644 --- a/pve-admin-guide.adoc +++ b/pve-admin-guide.adoc @@ -133,6 +133,14 @@ include::pvenode.1-synopsis.adoc[] :leveloffset: 0 +*pvesh* - Shell interface for the {pve} API +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:leveloffset: 1 +include::pvesh.1-synopsis.adoc[] + +:leveloffset: 0 + *qm* - Qemu/KVM Virtual Machine Manager ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/pvesh.1-synopsis.adoc b/pvesh.1-synopsis.adoc new file mode 100644 index 0000000..3c6eeef --- /dev/null +++ b/pvesh.1-synopsis.adoc @@ -0,0 +1,135 @@ +*pvesh* ` [ARGS] [OPTIONS]` + +*pvesh create* `` `[OPTIONS]` + +Call API POST on . + +``: `` :: + +API path. + +`--noproxy` `` :: + +Disable automatic proxying. + +*pvesh delete* `` `[OPTIONS]` + +Call API DELETE on . + +``: `` :: + +API path. + +`--noproxy` `` :: + +Disable automatic proxying. + +*pvesh get* `` `[OPTIONS]` + +Call API GET on . + +``: `` :: + +API path. + +`--human-readable` `` ('default =' `1`):: + +Call output rendering functions to produce human readable text. + +`--noborder` `` ('default =' `1`):: + +Do not draw borders (for 'text' format). + +`--noheader` `` ('default =' `1`):: + +Do not show column headers (for 'text' format). + +`--noproxy` `` :: + +Disable automatic proxying. + +`--output-format` `` ('default =' `text`):: + +Output format. + +`--quiet` `` :: + +Suppress printing results. + +*pvesh help* `[OPTIONS]` + +Get help about specified command. + +`--extra-args` `` :: + +Shows help for a specific command + +`--verbose` `` :: + +Verbose output format. + +*pvesh ls* `` `[OPTIONS]` + +List child objects on . + +``: `` :: + +API path. + +`--human-readable` `` ('default =' `1`):: + +Call output rendering functions to produce human readable text. + +`--noborder` `` ('default =' `1`):: + +Do not draw borders (for 'text' format). + +`--noheader` `` ('default =' `1`):: + +Do not show column headers (for 'text' format). + +`--noproxy` `` :: + +Disable automatic proxying. + +`--output-format` `` ('default =' `text`):: + +Output format. + +`--quiet` `` :: + +Suppress printing results. + +*pvesh set* `` `[OPTIONS]` + +Call API PUT on . + +``: `` :: + +API path. + +`--noproxy` `` :: + +Disable automatic proxying. + +*pvesh usage* `` `[OPTIONS]` + +print API usage information for . + +``: `` :: + +API path. + +`--command` `` :: + +API command. + +`--returns` `` :: + +Including schema for returned data. + +`--verbose` `` :: + +Verbose output format. + + diff --git a/pvesh.adoc b/pvesh.adoc new file mode 100644 index 0000000..913bae0 --- /dev/null +++ b/pvesh.adoc @@ -0,0 +1,51 @@ +ifdef::manvolnum[] +pvesh(1) +======== +:pve-toplevel: + +NAME +---- + +pvesh - Shell interface for the Proxmox VE API + +SYNOPSIS +-------- + +include::pvesh.1-synopsis.adoc[] + +DESCRIPTION +----------- +endif::manvolnum[] + +ifndef::manvolnum[] +Shell interface for the Proxmox VE API +====================================== +:pve-toplevel: +endif::manvolnum[] + + +The {PVE} management tool (`pvesh`) allows to directly invoke API +function, without using the REST/HTTPS server. + +NOTE: Only 'root' is allowed to do that. + + +EXAMPLES +-------- + +Get the list of nodes in my cluster + + # pvesh get /nodes + +Get a list of available options for the data center + + # pvesh usage cluster/options -v + +Set the HTMl5 NoVNC console as the default console for the data center + + # pvesh set cluster/options -console html5 + + +ifdef::manvolnum[] +include::pve-copyright.adoc[] +endif::manvolnum[] -- 2.39.2