Export a Package

You can export a package by using the vRealize Orchestrator REST API and download the package as a file.

By default, vRealize Orchestrator packages are exported with variable values of configuration elements and global tags. You can export a package without variable values or global tags by using parameters in the request. You can also specify a custom name for the package file that you download.

Procedure

  1. In a REST client application, add a request header with the following values.
    • Name: accept
    • Value: application/zip
  2. Make a GET request at the URL of the package that you want to export:
    GET https://{orchestrator_fqdn}/vco/api/packages/{package_name}/
  3. (Optional) To set a custom name for the exported package, use the packageName parameter in the GET request:
    GET https://{orchestrator_fqdn}/vco/api/packages/{package_name}/?packageName={custom_name}
  4. (Optional) To export a package without the variable values of the configuration elements from the package, use the exportConfigurationAttributeValues parameter in the GET request:
    GET https://{orchestrator_fqdn}/vco/api/packages/{package_name}/?exportConfigurationAttributeValues=false
  5. (Optional) To export a package without global tags, use the exportGlobalTags parameter in the GET request:
    GET https://{orchestrator_fqdn}/vco/api/packages/{package_name}/?exportGlobalTags=false

Results

If the GET request is successful, you receive the status code 200. The package binary content is available as an attachment with a default file name package_name.package. You can save the file with a REST client application.