Content Library Item File list
Lists all of the files that are stored within a given library item.
Returns an authorization error if you do not have all of the privileges described as follows:
- The resource
com.vmware.content.library.Item
referenced by the parameter libraryItemId requiresSystem.Read
.
Identifier of the library item whose files should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.
The list of all of the files that are stored within the given library item.
[
{
"checksum_info": {
"algorithm": "string",
"checksum": "string"
},
"name": "string",
"size": 0,
"cached": false,
"version": "string",
"file_download_endpoint": "string"
}
]
if Content Library Item File Info.file_download_endpoint URI cannot be constructed for the file due to unsupported characters in file name.
This error was added in vSphere API 9.0.0.0.
"Vapi Std Errors Unsupported Object"
if libraryItemId refers to a library item that does not exist.
"Vapi Std Errors NotFound Object"
curl -H 'Authorization: <value>' https://{api_host}/api/content/library/item/{libraryItemId}/file