Export a Package Example

GET /api/packages/{id} exports a package as a .zip file.

curl Command

The following command exports a package as a .zip file.
$curl --insecure -s -H "Accept: application/zip" -H "Authorization: Bearer $token" https://$vRA/content-management-service/api/packages/54f627bb-2277-48af-9fa0-7d7366b498f3-o package.zip

JSON Output

The export command returns a message that indicates whether or not the package was exported. A successful export produces a package.zip exported to the specified location. The returned message is '200 - Successes' with the Package or 404 - 'Not Found' if it does not find a package with provided ID.

Input

The query URL for the export command must specify the ID of the package to export.

Table 1. Export Query URL Parameters
Name Description Type
id The identifier of the package Path
secureValueFormat The format in which secure values should be sent. This parameter is optional and defaults to "BLANKOUT". Query

Output

The output of this command is a .zip file.