Content Library Item find
Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested Content Library Item FindSpec.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Read
. - The resource
com.vmware.content.Library
referenced by the property Content Library Item FindSpec.library_id requiresSystem.Read
.
Specification describing what properties to filter on.
{
"name": "string",
"library_id": "string",
"source_id": "string",
"type": "string",
"cached": false
}
The name of the library item. The name is case-insensitive. See Content Library ItemModel.name.
If not specified all library item names are searched.
The identifier of the library containing the item. See Content Library ItemModel.library_id.
If not specified all libraries are searched.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.content.Library
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.content.Library
.
The identifier of the library item as reported by the publisher. See Content Library ItemModel.source_id.
If not specified all library items are searched.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.content.library.Item
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.content.library.Item
.
The type of the library item. The type is case-insensitive. See Content Library ItemModel.type.
If not specified all types are searched.
Whether the item is cached. Possible values are 'true' or 'false'. See Content Library ItemModel.cached.
If not specified all library items are searched.
The list of identifiers of all the visible library items matching the given spec.
The response will contain identifiers for the resource type: com.vmware.content.library.Item
.
[
{}
]
if no properties are specified in the spec.
"Vapi Std Errors InvalidArgument Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/content/library/item?action=find