Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Pulling Reports from vRealize Business Standard Server Public API

$
0
0

Further developments from this question: Powershell Token Authentication when connecting to vRealize Business Standard 7.0

 

I have followed the vRealize Business Standard documentation (vRealize Business Standard 7.0 Documentation Center) to retrieve a token from the vRealize Automation server, and pull an out-of-the-box report from the vRealize Business server. The wget commands I'm using are below:

 

wget --no-check-certificate -S -q --header "Accept: application/json" --header='Content-Type: application/json' --post-data '{"username":"[username]","password":"[password]","tenant":"[tenant"}' -O - https://[vRealizeAutomationServer]/identity/api/tokens


(This successfully retrieves a token from the server.)

 

wget --no-check-certificate -S -q --header "Accept: text/plain" --header="Content-Type: text/plain" --header "accept-encoding: gzip" --header="Authorization: Bearer [token]" -O - https://[vRealizeBusinessServer]/itfm-cloud/rest/reports/export-filters/servers>out.xls


This command returns the following error:


  HTTP/1.1 401 Unauthorized

  Server: Apache-Coyote/1.1

  Content-Type: text/html;charset=utf-8

  Content-Language: en

  Content-Length: 1098

  Date: Thu, 17 Mar 2016 01:05:35 GMT

  Connection: keep-alive

 

I have sent a similar call using Powershell's Invoke-RestMethod (Seen in the link at the top of this post), which returns a similar error. Can anyone recommend a way to fix this, or point me towards the source of the problem?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>