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
-
In a REST client
application, add a request header with the following values.
- Name:
accept
- Value:
application/zip
-
Make a
GET
request at the URL of the package that you want to export:
GET https://{orchestrator_fqdn}/vco/api/packages/{package_name}/
- (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}
- (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
- (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.