Content Library Item DownloadSession cancel
Cancels the download session. This operation will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Anonymous
.
Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Success!
if the download session is not in the Content Library Item DownloadSessionModel State.ACTIVE state.
{
"messages": [
{
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi Std NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
}
],
"data": {},
"error_type": "string"
}
if no download session with the given identifier exists.
"Vapi Std Errors NotFound Object"
curl -X POST -H 'Authorization: <value>' https://{api_host}/api/content/library/item/download-session/{downloadSessionId}?action=cancel