How to download the monthly usage reports using VCF Usage Meter APIs
search cancel

How to download the monthly usage reports using VCF Usage Meter APIs

book

Article ID: 423809

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

This article provides the steps to generate a usage report programmatically using API calls to the VCF Business Services Portal.

Environment

VCF Usage Meter 9.x

Resolution

In order to generate the reports, take SSH to the usage meter as Root.

  1. Run the below curl command to get UM Access token. 
    curl --request POST \
      --url https://<UM_URL>/api/v2/auth \
      --header 'accept: application/json' \
      --header 'authorization: Basic <BASE64 UM_USER:UM_PASS>'
    

    curl -H 'Authorization: <value>' https://{api_host}/api/v1/usage-data/{year-month}
  2. Verify the path given to the usage report.

Additional Information

Reports through API