List Item Download Session
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Lists the identifiers of the download sessions created by the calling user. Optionally may filter by library item. if you do not have all of the privileges described as follows: - The resource com.vmware.content.library.item.DownloadSession referenced by the parameter libraryItemId requires ContentLibrary.DownloadSession.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library/item/download-session
Query Parameters
Query Parameters
string
library_item_id
Required
Library item identifier on which to filter results.
If not specified all download session identifiers are listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
LibraryItemDownloadSessionListResponseBody
of type application/json
The list of identifiers of all download sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession.
{
"value": [
"string"
]
}
array of
string
value
Optional
The list of identifiers of all download sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/library/item/download-session?library_item_id=string
Errors
404
com.vmware.vapi.std.errors.not_found : if a library item identifier is given for an item which does not exist.