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

About this task

By default, Orchestrator packages are exported with attribute values of configuration elements and global tags. You can export a package without attribute 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 http://{vcoHost}:{port}/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 http://{vcoHost}:{port}/vco/api/packages/{package_name}/?packageName={custom_name}
  4. (Optional) : To export a package without the attribute values of the configuration elements from the package, use the exportConfigurationAttributeValues parameter in the GET request:
    GET http://{vcoHost}:{port}/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 http://{vcoHost}:{port}/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.