HCP Tenant Management Help


Response body (GET account)

By default, HCP returns the list of containers you own in a plain text format. For the purpose of this example, the response body have been converted to XML using the Accept header. This is the response body, in XML format:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<account name="europe">
     <container>
         <name>finance</name>
         <bytes>8192</bytes>
         <count>1</count>
     </container>
     <container>
         <name>human-resources</name>
         <bytes>0</bytes>
         <count>0</count>
     </container>
</account>

The table below describes the XML elements in this response body. The elements are listed in alphabetical order.

Element Description
Account name Root element
Bytes

Child of the Container element.

The Bytes element specifies the size, in bytes, of the content of the item.

The response body includes Size elements for the listed directories. However, because directories have no content, the value of this element for a directory is always 0 (zero).

Count

Child of the Container element.

The Count element specifies the number of directories inside the Container element.

Container

Child of the Account name element and container for the Name, Bytes, and Count elements.

The response body contains one Container element for each container you own.

Name

Child of the Container element.

The Name element specifies the name of a Container.

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.