The response body returned in response to a request to list the contents of a container in an XML response body, in this format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<container name="sales-practice">
<object>
<name>mktg/campaign_GoGetEm_expenses.xls</name>
<hash>D357101A82D4F262E25860284C13EAC58F9A27A6AD70491BC6AAB4FB5113ABBC</hash>
<bytes>23040</bytes>
<content_type>application/octet-stream</content_type>
<last_modified>2014-10-31T12:39:16.000055</last_modified>
<subdir xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</object>
</container>
The table below describes the XML elements in this response body. The elements are listed in alphabetical order.
Element | Description |
---|---|
Bytes |
Child of the Object element. The Bytes element specifies the size, in bytes, of the content of the item. The response body includes Bytes elements for the listed folders. However, because folders have no content, the value of this element for a folder is always 0 (zero). |
Container |
Root element |
Content-Type |
Child of the Object element. The Content-Type element specifies the Internet media type of the response body if HCP can determine the Internet media type. If HCP cannot determine the Internet media type, the value of this header is application/octet-stream. Because HCP returns error information in a response body, the response to any request can include a Content-Type header. |
Hash |
Child of the Object element. The Hash element specified the calculated the Base64-encoded MD5 hash of the item. |
Last_Modified |
Child of the Object element. The Last_Modified element specifies the date and time at which the target object was last modified, in Greenwich Mean Time (GMT). The date and time are expressed in this format: yyyy-MM-ddTHH:mm:ss.SSSZ For example: 2014-10-20T16:34:27.000135 Modifying an object means modifying its metadata. You cannot modify the content of an object. |
Object |
Child of the Container element and container for the Bytes, Content-Type, Hash, Last Modified and subdir xsi:nil elements. The response body contains one Container element for each container you own. |
subdir xsi:nil="true | false" |
Child of the Container element. The response body specifies whether the Object element is a sub-directory (true) or object (false). The response body lists elements for sub-directories as well as objects. However, because sub-directories have no content, the value of the Bytes element is always 0 (zero) and the value of the Content_Type is always application/octet-stream. |
© 2016 Hitachi Data Systems Corporation. All rights reserved.