Pages

Wednesday, January 28, 2015

Launching CloudClient and Authenticating to vRealize Automation - Part 1

Before you can start using the CloudClient to perform command-line actions against your vRealize Automation (vRA) platform you have to authenticate to it. Whilst complete documentation is provided with the CloudClient download it does lack some examples of how to use the syntax, this post and others I'm yet to write will look to provide some of these examples based on my specific use cases.

The first step is to launch CloudClient, there are a couple of things to note here: 

a) you will need a Java Runtime Environment installed on the system where you re running the command-line too from.
b) the tool has two start-up scripts provide, one for Windows and one for Linux and these are now located in the /bin folder

1. Execute the correct start-up script, for my scenario I'm using a Windows server so we need to run C:\CloudClient\bin\cloudclient.bat. Assuming you have JVM installed correctly the CloudClient command-line tool will load and you will be presented with the following screen.


2a. Next we need to run the following command-line syntax to authenticate to the default tenant of the vRealize Automation system, from there we can run many commands against the platform.



2b. If you wanted to connect to a specific tenant and not the default tenant, then you can use the '--tenant' parameter as follows.



In the examples above we used the 'vra login userpass' command, but the tool also provides the ability to use a keyfile with the 'vra login keyfile' command. Now lets look at each of the parameters used in this example.





6 comments:

  1. Hi, i am using CloudClient. i am able to login. but after that neither of the list command is giving output.
    CloudClient>Vra content list
    Command 'Vra content list' not found (for assistance press TAB)

    Thanks in advance.
    please Help.

    ReplyDelete
    Replies
    1. Hi Shivendra, is the command you have posted to this message exactly how you have tried to use it in your CloudClient window? If so change the capital V to a small v and try again. Regards, Gary

      Delete
    2. Hi Gary, thanks for replying. i tried with vra content list also.
      it is giving the same.

      CloudClient>vra blueprint list
      Command 'vra blueprint list' not found (for assistance press TAB)
      CloudClient>vra content list
      Command 'vra content list' not found (for assistance press TAB)
      CloudClient>vra package list
      Command 'vra package list' not found (for assistance press TAB)
      CloudClient>vra content list
      Command 'vra content list' not found (for assistance press TAB)

      Delete
    3. What version are you trying with

      Delete
    4. i am using vRA Build 6.2.3-3093005 and cloud client version 3.5

      Delete
    5. Hi Gary do you have any idea about Json data what we are getting, while importing any blueprints through vrealize cloud client.

      Delete