VMware

File Namespace

The File namespace provides commands for accessing files within a download session. After a download session is created against a library item, the File namespace can be used to retrieve all downloadable content within the library item. Since the content may not be available immediately in a downloadable form on the server side, the client will have to prepare the file and wait for the file status to become PREPARED. See DownloadSession.

List of commands:



List Command

dcli com vmware content library item downloadsession file list

Description

Lists the information of all the files in the library item associated with the download session.

Options

Option Name Type Required Description
download‑session‑id string Yes Identifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.

Example

dcli com vmware content library item downloadsession file list --download-session-id testId


Prepare Command

dcli com vmware content library item downloadsession file prepare

Description

Requests a file to be prepared for download.

Options

Option Name Type Required Description
download‑session‑id string Yes Identifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
file‑name string Yes Name of the file requested for download.
endpoint‑type string No Endpoint type request, one of HTTPS, DIRECT. This will determine the type of the File.Info.download-endpoint that is generated when the file is prepared. The DIRECT is only available to users who have the ContentLibrary.ReadStorage privilege. If not specified the default is HTTPS. Valid values are: {HTTPS, DIRECT}

Example

dcli com vmware content library item downloadsession file prepare --download-session-id testId --file-name testString


Get Command

dcli com vmware content library item downloadsession file get

Description

Retrieves file download information for a specific file.

Options

Option Name Type Required Description
download‑session‑id string Yes Identifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.
file‑name string Yes Name of the file requested.

Example

dcli com vmware content library item downloadsession file get --download-session-id testId --file-name testString