You can use the REST API content management service to list the content that is available for export on your vRealize Automation deployment.

Listing Available Content

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.

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. This parameter does not appear when you query a single profile.

    • 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

Specifies an array of data rows, each of which represents one of the objects returned in a pageable list.

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

  • contentId: The human readable immutable user or provider supplied content ID.

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

  • description: Specifies additional information describing the package.

  • contentTypeId: Identifies the nature of the content.

  • mimeType: Identifies the mime type.

  • tenantId: The ID of the tenant associated with the package. Used to enforce ownership.

  • subtenantId: (Optional) The ID of the sub tenant or business group associated with the package.

  • dependencies: Represents the dependencies of the content unit in the form of content IDs.

  • createdDate: The creation date of the content.

  • lastUpdated: The date on which the content was last updated.

  • version: The version identifier of the content.

Metadata

Specifies the following paging-related data:

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

  • totalElement: Specifies the number of rows returned. This parameter is not output when you query for a single profile.

  • 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

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

JSON Output

{
  "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
    },
    {