| Option | Default | Allowed values | Description |
|---|---|---|---|
--jq |
jq-like filter | ||
--filter |
content filter | ||
--template |
JSON template for query body | ||
--output |
raw, json, yaml, table, csv, base64, none |
output format | |
--columns |
columns to display in a table | ||
--single |
convert single entry lists to a single object |
rawis the raw JSON format, as returned by the API.jsondisplays the content in JSON format, without response context.yamldisplays the content in YAML format, without response context.tabledisplays the content in CSV format, based on columns defined by the--columnsflag.csvdisplays the content in a text table, based on columns defined by the--columnsflag.base64decodes base64-encoded strings or lists of strings.nonedisables output.
Please note that
rawoutput returns the raw payload whereas the other formats only output the content (e.g. a list of VMs when listing VMs instead of an object with aVmsattribute storing the list).