Get Library Item
Released in v6.9.1 DescriptionReturns the information about the library item associated with the virtual machine.
Request
URLURL
https://{api_host}/rest/vcenter/vm/{vm}/library-item
Parameters
Parameters
string
vm
Required
Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine.
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
Response
Response
Response BodyResponse Body
200 OK returns
VmLibraryItemGetResponseBody
of type application/json
Information about the library item associated with the virtual machine.
{
"value": {
"check_out": {
"library_item": "string"
}
}
}
value
Optional
Information about the library item associated with the virtual machine.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/vcenter/vm/{vm}/library-item
Errors
401
com.vmware.vapi.std.errors.unauthenticated : if the user that requested the operation cannot be authenticated. | com.vmware.vapi.std.errors.unauthorized : if the user that requested the operation is not authorized to perform the operation.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.