...
A typical help doc for an api will list all available acceptable arguments and required arguments.
Ctrl+a (start of the line)
Ctrl+e (end of the line)
Ctlr+w (remove one word from back)
Ctrl+u (remove whole line) etc.
Ctrl+R and rest you know
Anything after # is treated as comment and is not processed on the shell.
...
Code Block |
---|
> !for((i=0;i<100;i++)); do cloudmonkey create user username=user$i account=admin firstname=user$i lastname=user$i password=password$i email=user$i@domain.org; done; |
Use the special command api to send a raw api. It does not do autocompletion and assumes the user knows what he's trying to do.
For example:
Code Block |
---|
> api uploadVolume url=xxx format=yyy name=zzz zoneid=aaa
|
There are two kinds of apis in CloudStack, one are blocking or synchronous and other one is non-blocking or asynchronous. By default for async apis like deploying a vm ec. are polled by cloudmonkey, one can set cloudmonkey not to poll or wait till the api is finished using:
...
Code Block |
---|
> query asyncjobresult jobid=<job-id> |
1. Reverse search
2. Bash/zsh completion
3 2. Documentation
cloudmonkey was named after the beloved mascot of Apache CloudStack and is powered by Marvin.
Author: The Apache CloudStack Team <cloudstack-dev@incubator.apache.org>
Maintainer: Rohit Yadav <bhaisaab@apache.org>