CloudStack-extras/knife-cloudstack — pull request #32 by sbotman (2012-12-10 17:55:47+00:00)
Title: Added extra options and generalized some functions.

New functions that are added / modified:

knife cs list:

added --filter	filters your output on the fields that you specify.
filter can be a string 'name' or regexp '/name/i'
example: --filter "instancename:/i-xxx/i, account:accname"

added --fields	the fields that you want to display in your output.
default outputs will be shown if no fields are defined.
example: --fields "name, instancename, domain"

added --fieldlist	this will display the fields that you can use to filter or
use in your output. example will be given with the first result
that you specify in your filter.

added --noheader	this will remove the column header from the output.

knife cs account list:	NEW

--listall	this will list all the possible results, depending on the
accout that you are using.

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "acme"
this will display all accounts with 'acme' inside the name.

knife cs cluster list:	NEW

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "clust-01"
this will display all clusters with 'clust-01' inside the name.

knife cs config list:	NEW

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "enable"
this will display all config settings with 'enable' inside the name.

knife cs disk list:	NEW

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "tiny"
this will display all disk offerings with 'tiny' inside the name

knife cs domain list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

knife cs firewallrule list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

knife cs host list:	NEW

--name	filters your output on the name that you specify.
example: --name "host1"
this will display all disk offerings with 'host1' inside the name

knife cs hosts:	UPDATED

added --listall	this will list all the results, depending on the
accout that you are using.

added --keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

added --name	filters your output on the name that you specify.
example: --name "vm1"
this will display all hosts with 'vm1' inside the name

knife cs iso list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "centos"
this will display all iso's with 'centos' inside the name

knife cs network list:	UPDATED

added --listall	this will list all the results, depending on the
accout that you are using.

added --keyword	filters your output on the keyword that you specify.
example: --keyword "network1"
this will display all networks with 'network1' inside the name

knife cs ostype list:	NEW

--keyword	filters your output on the keyword that you specify.
example: --keyword "centos"
this will display all types with 'centos' inside the name

knife cs oscategory list:	NEW

--keyword	filters your output on the keyword that you specify.
example: --keyword "centos"
this will display all types with 'centos' inside the name

knife cs pod list:	NEW

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "pod1"
this will display all pods with 'pod1' inside the name

knife project iso list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "project1"
this will display all projects with 'project1' inside the name

knife cs router list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

--name	filters your output on the name that you specify.
example: --name "r-1"
this will display all routers with 'r-1' inside the name

knife cs server list:	UPDATED

added --listall	this will list all the results, depending on the
accout that you are using.

added --keyword	filters your output on the instance name that you specify.
example: --keyword "i-324"
this will display all vm's with 'i-324' inside the instancename.

added --name	filters your output on the name that you specify.
example: --name "chef"
this will display all vm's with 'chef' inside the hostname.

added --action	this action will be executed on the output of the list command.
actions are: stop, start.
TODO: add more actions to the action command.

knife cs service list:	UPDATED

added --keyword	filters your result based on a keyword. this will speedup your
query because it's api based (server side) filtering.

added --name	filters your output on the name that you specify.
example: --name "medium" or --service "medium"
this will display all cpu service offerings with 'medium' inside the name.

knife cs template list:	UPDATED

added --listall	this will list all the results, depending on the
accout that you are using.

added --templatefilter	filters your output on the template that you specify.
example: --templatefilter "featured" (this is the default)
other options: "self", "self-executable", "executable", "community"

knife cs user list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your output on the keyword that you specify.
example: --keyword "jhon"
this will display all users with 'jhon' inside the name

knife cs volume list:	NEW

--listall	this will list all the results, depending on the
accout that you are using.

--keyword	filters your output on the keyword that you specify.
example: --keyword "ROOT-123"
this will display all users with 'ROOT-123' inside the name

--name	filters your output on the name that you specify.
example: --name "DATA"
this will display volumes with 'DATA' inside the name.

knife cs zone list:	UPDATED

added --keyword	filters your output on the keyword that you specify.
example: --keyword "zone1"
this will display all zones with 'zone1' inside the name