You can use the REST API content management service to display a list of supported content types.

Supported Content Types

A content type describes content that you can import or export using the content management service. Content types contain metadata about the content provider and the content itself, such as type information or service type ID. Usually the content provider supplies this information.

The REST API supports import and export of the following registered content types:

  • composite-blueprint - the content type corresponding to the composite blueprint

  • software-component - the content type corresponding to the software component

  • property-group - the content type corresponding to the property groups

  • property-definition - the content type corresponding to the property definitions

Everything as a Service (XaaS) content types:

  • XaaS-blueprint

  • XaaS-resource-action

  • XaaS-resource-type

  • XaaS-resource-mapping

Input

Use the supported input parameters with your query URL to control command output. .

Name

Description

Type

page

Page Number. Default is 1.

Query

limit

Number of entries per page. Default is 20.

Query

$orderby

Multiple comma-separated properties sorted in ascending or descending order.

Query

$top

The number of returned entries from the top of the response (total number per page in relation to skip).

Query

$skip

The number of entries to skip.

Query

$filter

Boolean expression for whether a particular entry should be included in the response.

Query

Output

The command output contains property names and values based on the command input parameters.

Parameter

Description

Links

Specifies an array of link objects, each of which contains the following parts:

  • rel

    Specifies the name of the link.

    • Self refers to the object that was returned or requested.

    • First, Previous, Next, and Last refer to corresponding pages of pageable lists.

    • Specifies the application or service that determines the other names.

  • href

    Specifies the URL that produces the result.

Content

  • id: The unique identifier for the content. This is also used as a folder name to group similar content artifacts.

  • name: The name of a given content type provided in localized message key form.

  • description: Additional information describing the content type.

  • classId: The class identifier associated with a content type.

  • serviceTypeId: The service ID for the given content type.

Metadata

Specifies the following paging-related data:

  • Size: Specifies the maximum number of rows per page.

  • totalElement: Specifies the number of rows returned.

  • totalPages: Specifies the total number of pages of data available.

  • Number: Specifies the current page number.

  • Offset: Specifies the number of rows skipped.

Example Curl Command

The following example command returns a list of supported content types.

$curl --insecure -s -H "Content-Type: application/json" -H "Authorization: Bearer $token" https://$host/content-management-service/api/provider/contenttypes

JSON Output

The following JSON output is returned based on the command input.

{
  "links": [
  ],
  "content": [
    {
      "@type": "ContentType",
      "id": "property-group",
      "name": "Property Group",
      "description": "Content type corresponding to the property groups.",
      "classId": "PropertyGroup",
      "serviceTypeId": "com.vmware.csp.core.properties.service"
    },
    {
      "@type": "ContentType",
      "id": "property-definition",
      "name": "Property Definition",
      "description": "Content type corresponding to the property definitions.",
      "classId": "PropertyDefinition",
      "serviceTypeId": "com.vmware.csp.core.properties.service"
    },
    {
      "@type": "ContentType",
      "id": "composite-blueprint",
      "name": "Composite Blueprint Content Type",
      "description": "The content type corresponding to the composite blueprint",
      "classId": "Composite.Blueprint",
      "serviceTypeId": "com.vmware.csp.component.cafe.composition"
    },
    {
      "@type": "ContentType",
      "id": "asd-blueprint",
      "name": "{com.vmware.csp.core.designer.service@service.blueprint.content.type.name}",
      "description": "{com.vmware.csp.core.designer.service@service.blueprint.content.type.description}",
      "classId": "asdServiceBlueprint",
      "serviceTypeId": "com.vmware.csp.core.designer.service"
    },
    {
      "@type": "ContentType",
      "id": "asd-resource-action",
      "name": "{com.vmware.csp.core.designer.service@resource.action.content.type.name}",
      "description": "{com.vmware.csp.core.designer.service@resource.action.content.type.description}",
      "classId": "asdResourceAction",
      "serviceTypeId": "com.vmware.csp.core.designer.service"
    },
    {
      "@type": "ContentType",
      "id": "asd-resource-type",
      "name": "{com.vmware.csp.core.designer.service@resource.type.content.type.name}",
      "description": "{com.vmware.csp.core.designer.service@resource.type.content.type.description}",
      "classId": "asdResourceType",
      "serviceTypeId": "com.vmware.csp.core.designer.service"
    },
    {
      "@type": "ContentType",
      "id": "asd-resource-mapping",
      "name": "{com.vmware.csp.core.designer.service@resource.mapping.content.type.name}",
      "description": "{com.vmware.csp.core.designer.service@resource.mapping.content.type.description}",
      "classId": "asdResourceMapping",
      "serviceTypeId": "com.vmware.csp.core.designer.service"
    },
    {
      "@type": "ContentType",
      "id": "software-component",
      "name": "Software Component Content Type",
      "description": "{com.vmware.csp.component.software.service@software.component.content.type.description}",
      "classId": "softwareComponentType",
      "serviceTypeId": "com.vmware.csp.component.software.service"
    }
  ],
  "metadata": {
    "size": 20,
    "totalElements": 9,
    "totalPages": 1,
    "number": 1,
    "offset": 0
  }
}