7.2

Table Of Contents
Output
The command output contains property names and values based on the command input parameters.
Table 3โ€‘24. Import and Export Response Body Parameters
Parameter Description
importStatus Over all status of the import/validation operation, one failure in import/validation result
guarantees failed status. Values are as follows:
n
Successful - Denotes the successful import or validation status at a particular
component or package level.
n
Partial - Denotes a scenario that warrants a system level warning. Alerts the user
about a possible error condition that the proposed action may create.
n
Failed - Denotes an import or validation failure at a particular component package
level.
data Set of collected content import/validation results populated by the provider. The Content
import operation result collection is the set of content that passed or failed:
n
entityType - (string) The ID for the entity being imported.
n
entitytId - (string) Unique content ID within the ๎œ™le system.
n
messageKey - (string)
n
logLevel - The logging level to use for any errors that occur.
n
message - Information returned by the provider.
n
entityName - (anyType) Name of the entity being imported.
Example Curl Command
The following command imports a ๎œ™le called XaaSContent.zip.
curl --insecure -X POST -H"Authorization: Bearer $token"-H"Content-Type: multipart/form-data"-
F"file=@XaaSContent.zip"-F"prefix=prefix_"-F"prefixOnlyConflicting=true"' https://$host/advanced-
designer-service/api/content/bundles'
Example: JSON Output
The output of the command is a message indicating the status and details of the import operation.
{
"importStatus" : "SUCCESSFUL",
"data" : [ {
"logLevel" : "INFO",
"entityType" : "com.vmware.vcac.designer.service.domain.ServiceBlueprint",
"entityId" : "4740aa54-61e6-47d7-945f-0bb50ff153c8",
"entityName" : "XaaSBlueprint",
"messageKey" : "import.blueprint.success",
"message" : "Success"
} ]
}
Chapter 3 REST API Use Cases
VMware, Inc. 355