HCP System Management Help
Here’s a sample HTTP GET request that returns information about the namespaces that are owned by the europe tenant in the hcp.example.com system and that can be accessed by the user identified by the Authorization header.
Request with curl command line
curl -k -H "Authorization: HCP bXl1c2Vy:3f3c6784e97531774380db177774ac8d"
"https://finance.europe.hcp.example.com/proc"
Request in Python using PycURL
import pycurl
curl = pycurl.Curl()
curl.setopt(pycurl.HTTPHEADER, ["Authorization: HCP
bXl1c2Vy:3f3c6784e97531774380db177774ac8d"])
curl.setopt(pycurl.URL,
"https://finance.europe.hcp.example.com/proc")
curl.setopt(pycurl.SSL_VERIFYPEER, 0)
curl.setopt(pycurl.SSL_VERIFYHOST, 0)
curl.perform()
print curl.getinfo(pycurl.RESPONSE_CODE)
curl.close()
Request headers
GET /proc HTTP/1.1
Host: /finance.europe.hcp.example.com
Authorization: HCP bXl1c2Vy:3f3c6784e97531774380db177774ac8d
Response headers
HTTP/1.1 200 OK
X-HCP-Time: 1334326410
Content-Length: 1275
Response body
<namespaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="/static/xsd/proc-namespaces.xsd"
tenantHostName="europe.hcp.example.com"
httpScheme="https">
<namespace name="finance"
nameIDNA="finance"
versioningEnabled="true"
searchEnabled="true"
retentionMode="enterprise"
defaultShredValue="false"
defaultIndexValue="true"
defaultRetentionValue="0"
hashScheme="SHA-256"
dpl="2"
>
<description><![CDATA[
Finance department
]]></description>
</namespace>
<namespace name="support"
nameIDNA="support"
versioningEnabled="true"
searchEnabled="true"
retentionMode="enterprise"
defaultShredValue="false"
defaultIndexValue="true"
defaultRetentionValue="0"
hashScheme="SHA-256"
dpl="2"
>
<description><![CDATA[
Technical Support department
]]></description>
</namespace>
</namespaces>
Trademarks and Legal Disclaimer
© 2017 Hitachi Vantara Corporation. All rights reserved.