Content Type: application/vnd.csp.container-info+xml

This content type represents meta information about file container, such as the name of the container and other information.


Elements

container

This is the root element of the container metainformation.


Elements

name

Reports the name of the container.


Type: xs:string


parent (Optional)

Provides a link to the parent container of this container. The link is specified using the XLink standard.


created (Optional)

Provides the creation date of the container.


Type: xs:string


modified (Optional)

Specifies the modification date of the container.


Type: xs:string


owner (Optional)

Specifies the owner of the container.


Type: xs:string

 

version (Optional)

Specifies the version of the container.


Type: xs:string


shared (Optional)

Specifies whether or not the container has been shared to another account.


Type: xs:string


accessed (Optional)

Specifies the last access time of the container.


Type: xs:string


bytes (Optional)

Specifies the size, in bytes, of the contents of the container.


Type: xs:string


contents (Optional)

Provides a link to the contents of the container. The link is specified using the XLink standard.


metadata (Optional)

Provides a link the client-supplied metadata associated with the container.


tags (Optional)

Provides a link to the tags associated with this container.


permissions (Optional)

Provides a link to the permissions associated with this container.


Schema Definition

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="container">
    <xs:complexType>
      <xs:all>
        <xs:element name="name" type="xs:string"/>
        <xs:element name="parent" minOccurs="0"/>
        <!-- the folowing elements are ignored by PUT and POST -->
        <xs:element name="created" type="xs:string" minOccurs="0"/>
        <xs:element name="modified" type="xs:string" minOccurs="0"/>
        <xs:element name="owner" type="xs:string" minOccurs="0"/>
        <xs:element name="version" type="xs:string" minOccurs="0"/>
        <xs:element name="shared" type="xs:string" minOccurs="0"/>
        <xs:element name="accessed" type="xs:string" minOccurs="0"/>
        <xs:element name="bytes" type="xs:string" minOccurs="0"/>
        <xs:element name="contents" minOccurs="0"/>
        <xs:element name="metadata" minOccurs="0"/>
        <xs:element name="tags" minOccurs="0"/>
        <xs:element name="permissions" minOccurs="0"/>
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>

Example

<container>
  <name>folder-name</name>
  <parent xlink:href="https://api.example.com/v2/path-to-parent-folder" xlink:type="simple"/>
  <created>1243969154</created>
  <modified>1262720755</modified>
  <owner>example@example.com</owner>
  <version>0</version>
  <shared>False</shared>
  <accessed>1262720755</accessed>
  <bytes>743078</bytes>
  <contents xlink:href="https://api.example.com/v2/path-to-contents" xlink:type="simple"/>
  <metadata xlink:href="https://api.example.com/v2/path-to-metadata" xlink:type="simple"/>
  <tags xlink:href="https://api.example.com/v2/path-to-tags" xlink:type="simple"/>
  <permissions xlink:href="https://api.example.com/v2/path-to-permissions" xlink:type="simple"/>
</container>