Cancel Item Download Session
Cancels the download session. This operation will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from. if you do not have all of the privileges described as follows: - Operation execution requires System.Anonymous.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library/item/download-session/id:{download_session_id}?~action=cancel
Parameters
Parameters
string
download_session_id
Required
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.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/library/item/download-session/id:{download_session_id}?~action=cancel
Errors
404
com.vmware.vapi.std.errors.not_found : if no download session with the given identifier exists.
409
com.vmware.vapi.std.errors.not_allowed_in_current_state : if the download session is not in the ACTIVE state.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.