Find Item
Returns identifiers of all the visible (as determined by authorization policy) library items matching the requested Item.FindSpec. 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 attribute Item.FindSpec.library-id requires System.Read.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specification describing what properties to filter on.
{
"cached": false,
"library_id": "string",
"name": "string",
"source_id": "string",
"type": "string"
}
Whether the item is cached. Possible values are ‘true’ or ‘false’. See ItemModel.cached. If not specified all library items are searched.
The identifier of the library containing the item. See ItemModel.library-id. If not specified all libraries are searched. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.content.Library. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.content.Library.
The name of the library item. The name is case-insensitive. See ItemModel.name. If not specified all library item names are searched.
The identifier of the library item as reported by the publisher. See ItemModel.source-id. If not specified all library items are searched. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.content.library.Item. When operations return a value of this structure as a result, the field 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 ItemModel.type. If not specified all types are searched.
Authentication
Response
Response BodyResponse Body
array
of
string
of type application/json
The list of identifiers of all the visible library items matching the given spec. The result will contain identifiers for the resource type: com.vmware.content.library.Item.
Errors
‘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/library/item?~action=find
x-vmw-doc-operation: find