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
https://{api_host}/rest/com/vmware/content/library/item?~action=find
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
LibraryItemFindRequestBody of type application/json (required){
"spec": {
"cached": false,
"library_id": "string",
"name": "string",
"source_id": "string",
"type": "string"
}
}
Response
Response
Response BodyResponse Body
200 OK returns
LibraryItemFindResponseBody
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.
{
"value": [
"string"
]
}
array of
string
value
Optional
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.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"spec":{"cached":false,"library_id":"string","name":"string","source_id":"string","type":"string"}}' https://{api_host}/rest/com/vmware/content/library/item?~action=find
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if no properties are specified in the spec.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.
On This Page
Item Operations
get
post
get
patch
delete
post
post
post