Find Library
Returns a list of all the visible (as determined by authorization policy) libraries matching the requested Library.FindSpec. if you do not have all of the privileges described as follows: - Operation execution requires System.Read.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library?~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
LibraryFindRequestBody of type application/json (required){
"spec": {
"name": "string",
"type": "enum"
}
}
Response
Response
Response BodyResponse Body
200 OK returns
LibraryFindResponseBody
of type application/json
The list of identifiers of all the visible libraries matching the given spec. The result will contain identifiers for the resource type: com.vmware.content.Library.
{
"value": [
"string"
]
}
array of
string
value
Optional
The list of identifiers of all the visible libraries matching the given spec. The result will contain identifiers for the resource type: com.vmware.content.Library.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"spec":{"name":"string","type":"enum"}}' https://{api_host}/rest/com/vmware/content/library?~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.