6.2

Table Of Contents
Table 202. Using the CLI to Manage Cloud Tunnels
CLI Command Description
create-cloud-tunnel --name
TunnelName --description "TunnelDescription"
--enabled false --externalAddress
EndpointVMElasticIP
--sshPort 22 --internalAddress EndpointVMPrivateIP
--proxyUrl ProxyURL --username UserName
--privateKeyPath PrivateKeyFilePath
Creates a secure cloud tunnel.
For example, you can use the following command to create
a cloud tunnel called EC2 Tunnel.
create-cloud-tunnel --name
EC2 Tunnel --description "Test EC2
tunnel connection" --enabled false --
externalAddress 50.18.100.100
--sshPort 22 --internalAddress 192.0.2.255
--proxyUrl http://proxy.vmware.com:3128 --
username root
--privateKeyPath /tmp/private_key_file
update-cloud-tunnel --name
PreviousTunnelName --new-name NewTunnelName
--description "TunnelDescription"
--externalAddress EndpointVMElasticIP
--sshPort 22 --internalAddress EndpointVMPrivateIP
--proxyUrl ProxyURL --username UserName
--privateKeyPath PrivateKeyFilePath
Changes the values of various parameters of an existing
cloud tunnel.
For most of the parameters, this command works only if the
cloud tunnel is disabled.
list-cloud-tunnels --name TunnelName
Retrieves a list of all the available cloud tunnels or a
particular cloud tunnel, when specified.
To view the details of a particular cloud tunnel, use the
command list-cloud-tunnels --name EC2 Tunnel.
enable-cloud-tunnel --name TunnelName
Enables an existing cloud tunnel.
This command initiates a background operation that
establishes the secure cloud tunnel connection.
disable-cloud-tunnel --name TunnelName
Disables an existing cloud tunnel.
This command initiates a background operation that
disconnects the secure cloud tunnel connection.
delete-cloud-tunnel --name TunnelName
Deletes an existing cloud tunnel.
The cloud tunnel must be disabled for it to be deleted.
Removes the cloud tunnel connection between the
Application Services appliance and the Amazon EC2
environment.
test-cloud-tunnel --name TunnelName
Verifies a cloud tunnel secure SSH connection and reports
the current status.
Enabling or disabling a cloud tunnel initiates the connection
or disconnection operation in the background. This
command reports the status of that background operation.
In addition, the command checks whether the connection
will function properly with Application Services during a
deployment.
Use this command after you enable or disable a cloud
tunnel to confirm that your request succeeded.
Using Application Services
VMware, Inc. 248