content library item storage: get
Retrieves the storage information for a specific file in a library item.
Request:
HTTP request
POST https://{server}/rest/com/vmware/content/library/item/storage/id:{library_item_id}?~action=get
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
library_item_id | string | Identifier of the library item whose storage information should be retrieved. |
Request Body Structure:
{
"file_name" : "string"
}
"file_name" : "string"
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
file_name | string | Name of the file for which the storage information should be listed. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : [
{
"checksum_info" : {
"checksum" : "string",
"algorithm" : "SHA1"
},
"size" : 1,
"storage_uris" : [
"http://myurl.com",
"http://myurl.com"
],
"cached" : true,
"name" : "string",
"storage_backing" : {
"datastore_id" : "obj-103",
"storage_uri" : "http://myurl.com",
"type" : "DATASTORE"
},
"version" : "string"
},
{
"checksum_info" : {
"checksum" : "string",
"algorithm" : "SHA1"
},
"size" : 1,
"storage_uris" : [
"http://myurl.com",
"http://myurl.com"
],
"cached" : true,
"name" : "string",
"storage_backing" : {
"datastore_id" : "obj-103",
"storage_uri" : "http://myurl.com",
"type" : "DATASTORE"
},
"version" : "string"
}
]
}
"value" : [
{
"checksum_info" : {
"checksum" : "string",
"algorithm" : "SHA1"
},
"size" : 1,
"storage_uris" : [
"http://myurl.com",
"http://myurl.com"
],
"cached" : true,
"name" : "string",
"storage_backing" : {
"datastore_id" : "obj-103",
"storage_uri" : "http://myurl.com",
"type" : "DATASTORE"
},
"version" : "string"
},
{
"checksum_info" : {
"checksum" : "string",
"algorithm" : "SHA1"
},
"size" : 1,
"storage_uris" : [
"http://myurl.com",
"http://myurl.com"
],
"cached" : true,
"name" : "string",
"storage_backing" : {
"datastore_id" : "obj-103",
"storage_uri" : "http://myurl.com",
"type" : "DATASTORE"
},
"version" : "string"
}
]
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | info[] | The array of all the storage items for the given file within the given library item. |
value[].storage_backing | storage_backing | The storage backing on which this object resides. This might not be the same as the default storage backing associated with the library. |
value[].storage_backing.type | string | Type (DATASTORE , OTHER ) of content.library.storage_backing. Specifies the type of the content.library.storage_backing. Value is one of:DATASTORE: The content of the library will be stored on a datastore. These are vCenter Server managed datastores, and are logical containers that hide specifics of each storage device. Depending on the type of storage you use, datastores can be backed by the following file system formats:
OTHER: The content of the library will be stored on a remote file system. Supports the following remote file systems:
create operation. It will always be present in the result of the get or list operations. It is not used for the update operation. |
value[].storage_backing.datastore_id | string | Identifier of the datastore used to store the content in the library. Optional. It is only relevant when type has value DATASTORE. This field is optional and it is only relevant when the value of type is DATASTORE.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: Datastore . When operations return a value of this structure as a result, the field will be an identifier for the resource type: Datastore . |
value[].storage_backing.storage_uri | URI | URI identifying the location used to store the content in the library. The following URI formats are supported: vSphere 6.5
vSphere 6.0 Update 1
vSphere 6.0
type is OTHER. |
value[].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. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
404 | not_found | if the specified library item does not exist. |