Get Item Deprecated
Returns the ItemModel with the given identifier. if you do not have all of the privileges described as follows: - The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires System.Read.
Request
URLURL
https://{api_host}/rest/com/vmware/content/library/item/id:{library_item_id}
Path Parameters
Path Parameters
string
library_item_id
Required
Identifier of the library item to return. The parameter must be an identifier for the resource type: com.vmware.content.library.Item.
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"
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK returns
LibraryItemGetResponseBody of type application/json
The ItemModel instance with the given libraryItemId.
{
"value": {
"cached": false,
"content_version": "string",
"creation_time": "string",
"description": "string",
"id": "string",
"last_modified_time": "string",
"last_sync_time": "string",
"library_id": "string",
"metadata_version": "string",
"name": "string",
"size": 0,
"source_id": "string",
"type": "string",
"version": "string"
}
}
Errors
404
com.vmware.vapi.std.errors.not_found : if no item with the given libraryItemId exists.
default
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/content/library/item/id:{library_item_id}
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-new-method: get
x-vmw-doc-new-path: /api/content/library/item/{library_item_id}
x-vmw-doc-operation: get
On This Page
Item Operations
get
post
get
patch
delete
post
post
post