content library item storage: info
The
info
structure is the expanded form of content.library.item.file.info that includes details about the storage backing for a file in a library item.Representations:
{
"cached": true,
"checksum_info": {
"algorithm": "SHA1",
"checksum": "string"
},
"name": "string",
"size": 1,
"storage_backing": {
"datastore_id": "obj-103",
"storage_uri": "http://myurl.com",
"type": "DATASTORE"
},
"storage_uris": [
"http://myurl.com",
"http://myurl.com"
],
"version": "string"
}
"cached": true,
"checksum_info": {
"algorithm": "SHA1",
"checksum": "string"
},
"name": "string",
"size": 1,
"storage_backing": {
"datastore_id": "obj-103",
"storage_uri": "http://myurl.com",
"type": "DATASTORE"
},
"storage_uris": [
"http://myurl.com",
"http://myurl.com"
],
"version": "string"
}
<?xml version="1.0" ?>
<ns0:Info xmlns:ns0="http://vmware.com/content/library/item/storage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cached>true</cached>
<name>string</name>
<storage_backing>
<datastore_id>obj-103</datastore_id>
<storage_uri>http://myurl.com</storage_uri>
<type>DATASTORE</type>
</storage_backing>
<storage_uris-array>
<array-item>http://myurl.com</array-item>
<array-item>http://myurl.com</array-item>
</storage_uris-array>
<checksum_info>
<checksum>string</checksum>
<algorithm>SHA1</algorithm>
</checksum_info>
<size>1</size>
<version>string</version>
</ns0:Info>
<ns0:Info xmlns:ns0="http://vmware.com/content/library/item/storage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cached>true</cached>
<name>string</name>
<storage_backing>
<datastore_id>obj-103</datastore_id>
<storage_uri>http://myurl.com</storage_uri>
<type>DATASTORE</type>
</storage_backing>
<storage_uris-array>
<array-item>http://myurl.com</array-item>
<array-item>http://myurl.com</array-item>
</storage_uris-array>
<checksum_info>
<checksum>string</checksum>
<algorithm>SHA1</algorithm>
</checksum_info>
<size>1</size>
<version>string</version>
</ns0:Info>
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
storage_backing | storage_backing | The storage backing on which this object resides. |
storage_uris | URI[] | URIs that identify the file on the storage backing. These URIs may be specific to the backing and may need interpretation by the client. A client that understands a URI scheme in this list may use that URI to directly access the file on the storage backing. This can provide high-performance support for file manipulation. |
name | string | The name of the file. This value will be unique within the library item for each file. It cannot be an empty string. |
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. |
cached | boolean | Indicates whether the file is on disk or not. |
version | string | The version of this file; incremented when a new copy of the file is uploaded. |
Optional | ||
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. |