com.vmware.content.library.item.download_session

The download_session service manipulates download sessions, which are used to download content from the Content Library Service.

A download session is an object that tracks the download of content (that is, downloading content from the Content Library Service) and acts as a lease to keep the download links available.

The com.vmware.content.library.item.downloadsession.file service provides access to the download links.

list

GET /com/vmware/content/library/item/download-session
POST /com/vmware/content/library/item/download-session/id:{library_item_id}?~action=list
POST /com/vmware/content/library/item/download-session?~action=list

Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item.
Request:
Representations:
{
    "library_item_id""obj-103"
}
<?xml version="1.0" ?>
<ns0:List-Input xmlns:ns0="http://vmware.com/content/library/item/download_session" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <library_item_id>obj-103</library_item_id>
</ns0:List-Input>
GET /com/vmware/content/library/item/download-session
?library_item_id=obj-103

Parameters:
Name Type Required Description
library_item_id ID No Library item identifier on which to filter results. Id of type com.vmware.content.library.item.DownloadSession.

Response:
Representations:
{
    "value"[
        "obj-103",
        "obj-103"
    ]
}
<?xml version="1.0" ?>
<ns0:List-Result xmlns:ns0="http://vmware.com/content/library/item/download_session" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value-array>
    <array-item>obj-103</array-item>
    <array-item>obj-103</array-item>
  </value-array>
</ns0:List-Result>

Parameters:
Name Type Required Description
result List<ID> Yes The array of identifiers of all download sessions created by the calling user. Id of type com.vmware.content.library.item.DownloadSession.

Errors:
Type Description HTTP Status Code
not_found if a library item identifier is given for an item which does not exist. 404

Copyright © 2014. All Rights Reserved.