Gogul Natarajan

HCP API Tenant and Namespace Usage details

Discussion created by Gogul Natarajan Employee on Aug 8, 2018
Latest reply on Aug 9, 2018 by Yury Kats

Hi All,

 

Using below command API (MAPI) we are able to collect the tenant hardquota, but we need collect the usage details for tenant. Please advise how to get the usage details for tenant and namespace.

 

Sample Quesry

curl -k -i -H "Accept: application/xml" -H "Authorization: HCP XXXXXXXXXXXXXXXXXXXXXX""https://10.100.000.00:9090/mapi/tenants/Tenantname?verbose=true&prettyprint"

 

Sample Output

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<tenant>

<administrationAllowed>true</administrationAllowed>

<authenticationTypes>

<authenticationType>LOCAL</authenticationType>

</authenticationTypes>

<complianceConfigurationEnabled>true</complianceConfigurationEnabled>

<creationTime>2018-06-29T03:16:34+0100</creationTime>

<dataNetwork>[hcp_system]</dataNetwork>

<fullyQualifiedName>Tenant.xxxxxxxhcp1a.xx.dev.net</fullyQualifiedName>

    <hardQuota>500.00 GB</hardQuota>

<managementNetwork>[hcp_system]</managementNetwork>

<maxNamespacesPerUser>100</maxNamespacesPerUser>

    <name>shark</name>

<namespaceQuota>None</namespaceQuota>

<replicationConfigurationEnabled>false</replicationConfigurationEnabled>

<searchConfigurationEnabled>true</searchConfigurationEnabled>

<servicePlan>Default</servicePlan>

<servicePlanSelectionEnabled>false</servicePlanSelectionEnabled>

<snmpLoggingEnabled>false</snmpLoggingEnabled>

<softQuota>85</softQuota>

<syslogLoggingEnabled>false</syslogLoggingEnabled>

<systemVisibleDescription></systemVisibleDescription>

<tags/>

<tenantVisibleDescription></tenantVisibleDescription>

<id>ca2dcd5e-bc78-46e4-b42e-3e47a746eaba</id>

<versioningConfigurationEnabled>false</versioningConfigurationEnabled>

Outcomes