Sync Subscribed Library
DescriptionForces the synchronization of the subscribed library. Synchronizing a subscribed library forcefully with this operation will perform the same synchronization behavior as would run periodically for the library. The SubscriptionInfo.on-demand setting is respected. Calling this operation on a library that is already in the process of synchronizing will have no effect.
if you do not have all of the privileges described as follows: - The resource com.vmware.content.Library referenced by the parameter libraryId requires ContentLibrary.SyncLibrary.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the subscribed library to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.Library.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_element_type : if the library specified by libraryId is not a subscribed library. | com.vmware.vapi.std.errors.not_allowed_in_current_state : if the content of the library specified by libraryId has been deleted from the storage backings (see LibraryModel.storage-backings) associated with it. For instance, this {@term error) is reported on synchronizing a subscribed library that was restored from backup, and the library was deleted after the backup was taken, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library is present on a restore, while its content has been deleted. | com.vmware.vapi.std.errors.invalid_argument : if some parameter in the subscribed library subscription info is invalid.
com.vmware.vapi.std.errors.not_found : if the library specified by libraryId does not exist.
com.vmware.vapi.std.errors.resource_inaccessible : if the published library cannot be contacted or found.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/com/vmware/content/subscribed-library/id:{library_id}?~action=sync
x-vmw-doc-operation: sync