Skip to content
Chris Lowth edited this page Sep 21, 2022 · 6 revisions

get

Usage:

tbutil [{cred}] get [anon] [-j|-s ..|-y] [-jsfilter ..] {path}

The get command can be used to invoke a Turbonomic raw REST "get" API function if you know it's path and query options. The results are displayed (by default) as a JSON document.

Note that the path should exclude the /vmturbo/rest fixed component. So the 'groups' endpoint should be specified as /groups, not /vmturbo/rest/groups.

The options -j, -s or -y can be used to specify how the output is formatted (see "common formatting options").

The anon keyword can be used to get the result of a "GET" call against REST API endpoints that dont require authentication (there are a small number of these).

If the -jsfilter option is specified then the tool loads and runs the specified filter script. Only the sub-set of records for which the function returns true are included in the output.

Example:

This lists upto 10 members of the group who's UUID is given in the path ..

tbutil @instance_1 get "/groups/8b3b69301a90673bfe1c7856af425706a8f4cc6c/members?limit=10"

See also: "delete", "post", "put"

Clone this wiki locally