POST /com/vmware/content/library/item/storage/id:{library_item_id}?~action=get |
POST /com/vmware/content/library/item/storage?~action=get |
{
"file_name": "string", "library_item_id": "obj-103" }
<?xml version="1.0" ?>
<ns0:Get-Input xmlns:ns0="http://vmware.com/content/library/item/storage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <library_item_id>obj-103</library_item_id> <file_name>string</file_name> </ns0:Get-Input>
POST /com/vmware/content/library/item/storage?~action=get
&library_item_id=obj-103 &file_name=string |
Name | Type | Required | Description |
---|---|---|---|
library_item_id* |
ID | Yes | Identifier of the library item whose storage information should be retrieved. Id of type com.vmware.content.library.Item. |
file_name* |
string | Yes | Name of the file for which the storage information should be listed. |
{
"value": [ { "storage_backing": { "datastore_id": "obj-103", "storage_uri": "http://myurl.com", "type": "DATASTORE" }, "storage_uris": [ "http://myurl.com", "http://myurl.com" ] }, { "storage_backing": { "datastore_id": "obj-103", "storage_uri": "http://myurl.com", "type": "DATASTORE" }, "storage_uris": [ "http://myurl.com", "http://myurl.com" ] } ] }
<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="http://vmware.com/content/library/item/storage" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <value-array> <array-item> <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> </array-item> <array-item> <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> </array-item> </value-array> </ns0:Get-Result> |
Name | Type | Required | Description |
---|---|---|---|
result | List<info> | Yes | The array of all the storage items for the given file within the given library item. |
Type | Description | HTTP Status Code |
---|---|---|
not_found | if the specified library item does not exist. | 404 |
Copyright © 2014. All Rights Reserved.