content library item file: get

Retrieves the information for a single file in a library item by its name.


HTTP request

POST https://{server}/rest/com/vmware/content/library/item/file/id:{library_item_id}?~action=get

Path Parameters

Name Type Description
library_item_id string Identifier of the library item whose file information should be returned.

Request Body Structure:

<?xml version="1.0" ?>
<ns0:Get-Input xmlns:ns0="" xmlns:xsi="">

Request Body Parameters:

Name Type Description
bold = required
name string Name of the file in the library item whose information should be returned.


HTTP Status Code: 200


<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="" xmlns:xsi="">

Response Type:

Name Type Description
bold = required
value info The object with information on the specified file.
value.checksum_info checksum_info A checksum for validating the content of the file.

This value can be used to verify that a transfer was completed without errors.

Optional. A checksum cannot always be calculated, and the value will be unset if the file does not have content.

value.checksum_info.algorithm string The checksum algorithm (SHA1, MD5) used to calculate the checksum.

Optional. If not specified the default checksum algorithm is SH_a1.

value.checksum_info.checksum string The checksum value calculated with content.library.item.file.checksum_info.algorithm. string The name of the file.

This value will be unique within the library item for each file. It cannot be an empty string.

value.size long The file size, in bytes. The file size is the storage used and not the uploaded or provisioned size. For example, when uploading a disk to a datastore, the amount of storage that the disk consumes may be different from the disk file size. When the file is not cached, the size is 0.

value.cached boolean Indicates whether the file is on disk or not.

value.version string The version of this file; incremented when a new copy of the file is uploaded.


HTTP Status Code Type Description
404 not_found if library_item_id refers to a library item that does not exist.