Create Item Download Session Deprecated
Creates a new download session. if you do not have all of the privileges described as follows: - The resource com.vmware.content.library.Item referenced by the attribute DownloadSessionModel.library-item-id requires ContentLibrary.DownloadSession.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"create_spec": {}
}
Specification for the new download session to be created.
A unique token generated by the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751. This token can be used to guarantee idempotent creation. If not specified creation is not idempotent.
Authentication
Response
Response BodyResponse Body
Identifier of the new download session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
{
"value": "string"
}
Identifier of the new download session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
Errors
com.vmware.vapi.std.errors.invalid_argument : if the session specification is not valid. format.
com.vmware.vapi.std.errors.not_found : if the library item targeted by the download does not exist.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-new-method: post
x-vmw-doc-new-path: /api/content/library/item/download-session
x-vmw-doc-operation: create