VMware

SubscribedItem Namespace

The SubscribedItem namespace manages the unique features of library items that are members of a subscribed library.

List of commands:



Evict Command

dcli com vmware content library subscribeditem evict

Description

Evicts the cached content of a library item in a subscribed library. This command allows the cached content of a library item to be removed to free up storage capacity. This command will only work when a library item is synchronized on-demand. When a library is not synchronized on-demand, it always attempts to keep its cache up-to-date with the published source. Evicting the library item will set ItemModel.cached to false.

Options

Option Name Type Required Description
library‑item‑id string Yes Identifier of the library item whose content should be evicted. The parameter must be an identifier for the resource type: com.vmware.content.library.Item.

Example

dcli com vmware content library subscribeditem evict --library-item-id testId


Sync Command

dcli com vmware content library subscribeditem sync

Description

Forces the synchronization of an individual library item in a subscribed library. 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 command will delete the library item from the subscribed library as well. The default behavior of the synchronization is determined by the SubscriptionInfo of the library which owns the library item.

When the file content has been synchronized, the ItemModel.cached option will be true. This command will return immediately and create an asynchronous task to perform the synchronization.

Options

Option Name Type Required Description
library‑item‑id string Yes Identifier of the library item to synchronize. The parameter must be an identifier for the resource type: com.vmware.content.library.Item.
force‑sync‑content bool Yes Whether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.

Example

dcli com vmware content library subscribeditem sync --library-item-id testId --force-sync-content test