List Supported Content Types Example
GET /api/provider/contenttypes displays 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.
- 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
curl Command
$curl --insecure -s -H "Content-Type: application/json" -H "Authorization: Bearer $token" https://$vRA/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 } }
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:
|
Content |
|
Metadata |
Specifies the
following paging-related data:
|