6.2

Table Of Contents
Default if unspecified: '__NULL__'
Keyword: u
Keyword: uri
Help: URI of resource. e.g. consumer/catalogItems
Mandatory: true
Default if specified: '__NULL__'
Default if unspecified: '__NULL__'
Keyword: h
Keyword: headers
Help: Show request and response headers
Mandatory: false
Default if specified: 'true'
Default if unspecified: 'false'
* rest get - Invoke a GET http request
Use the Command Line Mode
The command line mode lets you incorporate vcac-cli commands in other scripts and programs.
You can invoke any supported vcac-cli command and option, including help.
Prerequisites
n
Install the API Explorer, if necessary.
n
Your PATH environment variable must contain the location of the vcac-cli (UNIX) or vcac_cli.bat
(Windows) script.
Procedure
1 Enter the command string on the vcac-cli command line.
$ vcac-cli command_string
The output is displayed on the stderr stream.
2 (Optional) You can redirect the output to a file in Linux or Windows.
$ vcac-cli system properties 2> output.txt
Example: Run vcac-cli commands in the command line
$ vcac-cli system properties
app.home = /Users/myusername/vcac/cli/shell/target/appassembler
app.name = vcac-cli
app.pid = 12444
app.repo = /Users/myusername/vcac/cli/shell/target/appassembler/repo
. . .
Programming Guide
VMware, Inc. 402