Import an application process from a file

This command imports an application process from a JSON or YAML file format.

Request

POST https://{hostname}:{port}
    /cli/applicationProcess/import?{parameters}
Accept: {contentType}
Content-Type: {contentType}
Table 1. Request parameters
Parameter Type Required Description
application string true Name or ID of the application
processUpgradeType string false Supported values are, CREATE_NEW_IF_EXISTS, FAIL_IF_DOESNT_EXIST, FAIL_IF_EXISTS, UPGRADE_IF_EXISTS, USE_EXISTING_IF_EXISTS.
Table 2. Header parameters
Parameter Type Required Description
Content-Type
  • application/json
  • application/yaml
true
Accept
  • application/json
  • application/yaml
true

Response

{
  "id": "187b908b-570f-1121-b943-e058185063d5",
  "name": "Deploy JPetStore",
  "description": "",
  "active": true,
  "inventoryManagementType": "AUTOMATIC",
  "offlineAgentHandling": "PRE_EXECUTION_CHECK",
  "versionCount": 4,
  "version": 4,
  "commit": 963,
  "path": "applications\/187b908b-3bc1-0bcb-0233-abff5fa79d79\/processes\/187b908b-570f-1121-b943-e058185063d5",
  "deleted": false,
  "metadataType": "applicationProcess",
  "disableSnapshots": false
}

Related CLI command: importApplicationProcess.