com.vmware.content.type

The type service exposes the com.vmware.content.library.item_model types that this Content Library Service supports.

A library item has an optional type which can be specified with the com.vmware.content.library.item_model.type field. For items with a type that is supported by a plugin, the Content Library Service may understand the files which are part of the library item and can produce metadata for the item.

In other cases, uploads may require a process in which one upload implies subsequent uploads. For example, an Open Virtualization Format (OVF) package is composed of an OVF descriptor file and the associated virtual disk files. Uploading an OVF descriptor can enable the Content Library Service to understand that the complete OVF package requires additional disk files, and it can set up the transfers for the disks automatically by adding the file entries for the disks when the OVF descriptor is uploaded.

When a type is not supported by a plugin, or the type is not specified, the Content Library Service can handle a library item in a default way, without adding metadata to the item or guiding the upload process.

list

GET /com/vmware/content/type
POST /com/vmware/content/type?~action=list

Returns a array of com.vmware.content.type.info instances which describe the type support plugins in this Content Library.
Request:
Representations:
GET /com/vmware/content/type

Parameters:
None

Response:
Representations:
{
    "value"[
        {
            "description""string",
            "name""string",
            "type""string",
            "vendor""string",
            "version""string"
        },
        {
            "description""string",
            "name""string",
            "type""string",
            "vendor""string",
            "version""string"
        }
    ]
}
<?xml version="1.0" ?>
<ns0:List-Result xmlns:ns0="http://vmware.com/content/type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value-array>
    <array-item>
      <vendor>string</vendor>
      <description>string</description>
      <name>string</name>
      <type>string</type>
      <version>string</version>
    </array-item>
    <array-item>
      <vendor>string</vendor>
      <description>string</description>
      <name>string</name>
      <type>string</type>
      <version>string</version>
    </array-item>
  </value-array>
</ns0:List-Result>

Parameters:
Name Type Required Description
result List<info> Yes The array of com.vmware.content.type.info instances which describe the type support plugins in this Content Library.

Errors:
None

Copyright © 2014. All Rights Reserved.