Prepare Item Downloadsession File Deprecated
Requests a file to be prepared for download. if you do not have all of the privileges described as follows: - Operation execution requires System.Anonymous.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
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.
{
"file_name": "string"
}
Name of the file requested for download.
The File.EndpointType enumerated type defines the types of endpoints used to download the file.
HTTPS : An https download endpoint.
DIRECT : A direct download endpoint indicating the location of the file on storage. The caller is responsible for retrieving the file from the storage location directly.
Possible values are: HTTPS , DIRECT
Authentication
Response
Response BodyResponse Body
File information containing the status of the request and the download link to the file.
{
"value": {
"bytes_transferred": 0,
"checksum_info": {
"algorithm": "SHA1",
"checksum": "string"
},
"download_endpoint": {
"ssl_certificate_thumbprint": "string",
"uri": "string"
},
"error_message": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": [
{
"key": "key1",
"value": {
"d": 0,
"dt": "string",
"format": "SHORT_DATE",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
]
},
"name": "string",
"size": 0,
"status": "UNPREPARED"
}
}
File information containing the status of the request and the download link to the file.
Errors
com.vmware.vapi.std.errors.invalid_argument : if there is no file with the specified fileName.
com.vmware.vapi.std.errors.unauthorized : if the the download session wasn’t created with the ContentLibrary.ReadStorage privilege and the caller requested a DIRECT endpoint type.
‘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/{download_session_id}/file?action=prepare
x-vmw-doc-operation: prepare