Article ID: 126888, created on Sep 14, 2015, last review on Sep 14, 2015

  • Applies to:
  • Operations Automation

Question

How can provider get data from the usage site of WAP portal directly?

Answer

There are several ways to retrieve this information:

  1. You may first check it from WAP server in browser like it is described in http://download.pa.parallels.com/poa/WAP/pa_wap_integration_deployment_guide.pdf#page=27.

  2. The following curl request can be used to get data from the usage site:

    # curl -i -k -u'<username>:<password>' -X GET https://1.2.3.4:30022/usage?startid=-1&batchsize=100
    

To get data from the usage site, you need to have a user name and password. The required login and password are entered during the deployment of WAP module in OA in Services > Cloud Infrastructure > Windows Azure Pack > Settings. To get the username currently used for usage site you may use the following powershell cmdlets:

Import-Module -Name MgmtSvcConfig

Get-MgmtSvcSetting -Namespace UsageService -Name Username

You will get something like:

Name                             SettingType      Value                              Description
----                             -----------      -----                              -----------
Username                         Username         UsageClient                        Username used to connect to the...

To get the password, please use the following cmdlet:

Get-MgmtSvcSetting -Namespace UsageService -Name Password

Search Words

Windows Azure Pack

WAP

WAP usage

using WAP token to get usage data externally

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF