Generating x-hm authentication token for use with HCX APIs
search cancel

Generating x-hm authentication token for use with HCX APIs

book

Article ID: 370544

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

This article is to help outline the process necessary to generate the x-hm authentication token in order to enable the use of HCX APIs

Environment

HCX Manager APIs

Resolution

Access the following URL: https://<hcx-FQDN>/hybridity/docs/index.html

  • Select: "HCX Connector"
  • Navigate to Platform (APIs to provide authentication, session and job information).
  • Choose POST > /hybridity/api/sessions.
  • Click "Try it out" 


Provide the username and password for this user (vCenter credentials).
and then "Execute."
 

Gather the x-hm-authorization from the response headers:

When you navigate to other APIs you can click authorize and paste the x-hm-authorization value there.





This will allow you to authorize the use of subsequent APIs.