REST API - evict

content library subscribed item: evict

Evicts the cached content of a library item in a subscribed library.

This operation allows the cached content of a library item to be removed to free up storage capacity. This operation 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 content.library.item_model.cached to false.

Request:

HTTP request

POST https://{server}/rest/com/vmware/content/library/subscribed-item/id:{library_item_id}?~action=evict

Path Parameters

Name Type Description
Required
library_item_id string Identifier of the library item whose content should be evicted.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
404 not_found if the library item specified by library_item_id does not exist.
400 invalid_element_type if the library item specified by library_item_id is not a member of a subscribed library.
400 invalid_element_configuration if the library item specified by library_item_id is a member of a subscribed library that does not synchronize on-demand.
400 not_allowed_in_current_state if the content of the library item specified by library_item_id has been deleted from the storage backings (see LibraryModel#storageBackings) associated with it.

For instance, this {@term error) is reported on evicting a library item in an on-demand subscribed library that was restored from backup, and the library item was deleted after backup, thus resulting in its content being deleted from the associated storage backings. In this scenario, the metadata of the library item is present on a restore, while its content has been deleted.