7.0

Table Of Contents
Example Curl Command
$curl --insecure -s -H "Accept: application/zip" -H "Authorization: Bearer $token"
https://$host/content-management-
service/api/packages/54f627bb-2277-48af-9fa0-7d7366b498f3-o package.zip
Example: Example: 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.
Syntax for Validating a Content Bundle Before Importing
You can use the REST API content management service to validate a content bundle before importing to
a critical system. VMware recommends that you validate all packages before importing them to any
system.
Input
You can use optional request parameters with your query URL to customize the returned content.
Table 418. Package Validation Parameters
Name Description Type
file The name of the package file to be validated query
resolution mode The resolution mode to be used for performing validation when the
same entity exists in the system. Valid values are SKIP,
OVERWRITE. SKIP will not update the existing entity with the new
content while OVERWRITE will update the old entity with the new
data. In case the resolution mode is not explicitly provided the
default mode OVERWRITE will be used for conflict resolution.
query
Output
The package validation response body contains the following parameters.
Programming Guide
VMware, Inc. 386