List Available Content Example
GET /api/contents lists the content that is available for export on your vRealize Automation deployment. Content is some artifact, entity or information that provides value to a user in a specific context. Content can be represented in a file in different formats, such as XML, JSON, or a package of files.
curl Command
$curl --insecure -s -H "Content-Type: application/json"-H "Authorization: Bearer $token" https://$vRA/content-management-service/api/contents
JSON Output
The output includes published artifacts such as blueprints, software, and properties.
{ "links": [], "content": [ { "@type": "Content", "id": "6ba58cb4-257d-4833-b2dc-f090f92f86be", "contentId": "3482e3a7-c6c2-4372-b8e1-0db517b93406", "name": "Echo String", "description": null, "contentTypeId": "asd-blueprint", "mimeType": null, "tenantId": "qe", "subtenantId": null, "dependencies": [], "createdDate": "2015-08-18T19:14:54.899Z", "lastUpdated": "2015-08-18T19:14:54.899Z", "version": 0 }, { "@type": "Content", "id": "079cc912-b870-4f56-a1c3-91905526b09d", "contentId": "NicksBP", "name": "Nick's BP", "description": "Nick's BP", "contentTypeId": "composite-blueprint", "mimeType": null, "tenantId": "qe", "subtenantId": null, "dependencies": [], "createdDate": "2015-08-18T20:14:57.299Z", "lastUpdated": "2015-08-18T20:14:57.299Z", "version": 0 }, { "@type": "Content", "id": "9795e97f-7025-44f9-9a57-f59242a7775d", "contentId": "de81f329-cb72-4099-b831-309db708833b", "name": "TestMapping", "description": null, "contentTypeId": "asd-resource-mapping", "mimeType": null, "tenantId": "qe", "subtenantId": null, "dependencies": [], "createdDate": "2015-08-18T20:53:25.062Z", "lastUpdated": "2015-08-18T20:53:25.062Z", "version": 0 }, { "@type": "Content", "id": "3922fda1-b5fd-4c51-997d-5f803ec6fb6e", "contentId": "e8ae6093-18a9-4ec9-a415-1ef850f243f9", "name": "CustomRes", "description": null, "contentTypeId": "asd-resource-type", "mimeType": null, "tenantId": "qe", "subtenantId": null, "dependencies": [], "createdDate": "2015-08-18T20:56:11.052Z", "lastUpdated": "2015-08-18T20:56:11.052Z", "version": 0 }, { "@type": "Content", "id": "4754ad69-a6a7-447f-96de-2ed6fa260f7c", "contentId": "Software.Apache_LB", "name": "Apache_LB", "description": "Apache 2.2 The Apache HTTP Server is an open-source HTTP server for modern operating systems including UNIX, Microsoft Windows, Mac OS/X and Netware. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services observing the current HTTP standards. Apache has been the most popular web server on the Internet since April of 1996.", "contentTypeId": "software-component", "mimeType": null, "tenantId": "qe", "subtenantId": null, "dependencies": [], "createdDate": "2015-08-18T21:31:43.094Z", "lastUpdated": "2015-08-18T21:31:44.133Z", "version": 1 }, {
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 |
Specifies an array of data rows, each of which represents one of the objects returned in a pageable list.
|
Metadata |
Specifies the
following paging-related data:
|