You can use the content management service to import and export everything as a service (XaaS) content.

About this task

XaaS services are integrated with the API content management service, and all commands that work with other content types also work with XaaS content. Though these XaaS services may be deprecated in a future vRealize Automation release, they are still available for users to migrate XaaS content into vRealize Automation.

Prerequisites

  • Log in to vRealize Automation with an appropriate role. For example: Software Architect, Application Architect, Infrastructure Architecture or some combination of these depending on the need.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • Verify that there is a valid HTTP bearer token that matches your login credentials. See REST API Authentication.

Procedure

  1. Use the following command to import a 6.2.x package into vRealize Automation 7.0.

    curl --insecure -X POST -H"Authorization: Bearer $token"-H"Content-Type: multipart/form-data"-F"file=@XaaSContent.zip"-F"prefix=prefix_"-F"prefixOnlyConflicting=true"' https://$host/advanced-designer-service/api/content/bundles'

  2. Use the following command to export an XaaS package as a .zip file.

    curl -X PUT -H"Authorization: Bearer $token"-H"Content-Type: application/json"-d'{"jsonAccepted" : true, "tenantId" : "qe", "data" : [] }'' https://$host/advanced-designer-service/api/content/bundles/filters'