HCP System Management Help
You use the HTTP Authorization request header to provide the authentication token for an AD user accessing HCP through the metadata query management API. The value of this header is AD followed by the authentication token, in this format:
Authorization: AD authentication-token
For example, here’s the Authorization header for a user named lgreen and password p4ssw0rd:
Authorization: AD lgreen@example.com:p4sswOrd
Specifying the Authorization header with cURL
With cURL, you use the -H option to specify a header. So, for example, a query API request for objects in namespaces owned by the tenant europe might look like this:
curl -i -k "https://europe.hcp.example.com/query"
-H "Authorization: AD lgreen@example.com:p4sswOrd"
-H "Content-Type:application/xml -H "Accept: application/xml"
-d @queryRequest.xml
For more information on the format for metadata query API requests, see Request format.
Specifying the authentication header in Python with PycURL
In Python with PycURL, you use the HTTPHEADER option to specify a header, as in this example:
curl.setopt(pycurl.HTTPHEADER, ["Authorization: AD
lgreen@example.com:p4sswOrd"])
Trademarks and Legal Disclaimer
© 2017 Hitachi Vantara Corporation. All rights reserved.