POST /com/vmware/content/library/subscribed-item/id:{library_item_id}?~action=sync |
POST /com/vmware/content/library/subscribed-item?~action=sync |
Synchronizing an individual item will update that item's metadata from the remote source. If the source library item on the remote library has been deleted, this operation will delete the library item from the subscribed library as well.
The default behavior of the synchronization is determined by the com.vmware.content.library.subscription_info of the library which owns the library item.
force_sync_content
parameter.force_sync_content
parameter is ignored when the subscription is not on-demand.This operation will return immediately and create an asynchronous task to perform the synchronization.
{
"force_sync_content": true, "library_item_id": "obj-103" }
<?xml version="1.0" ?>
<ns0:Sync-Input xmlns:ns0="http://vmware.com/content/library/subscribed_item" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <library_item_id>obj-103</library_item_id> <force_sync_content>true</force_sync_content> </ns0:Sync-Input>
POST /com/vmware/content/library/subscribed-item?~action=sync
&library_item_id=obj-103 &force_sync_content=true |
Name | Type | Required | Description |
---|---|---|---|
library_item_id* |
ID | Yes | Identifier of the library item to synchronize. Id of type com.vmware.content.library.Item. |
force_sync_content* |
boolean | Yes | Whether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand. |
Name | Type | Required | Description |
---|---|---|---|
result | VOID | Yes |
Type | Description | HTTP Status Code |
---|---|---|
not_found | if the library item specified by library_item_id could not be found. |
404 |
invalid_element_type | if the library item specified by library_item_id is not a member of a subscribed library. |
400 |
Copyright © 2014. All Rights Reserved.