importComponentProcess

Import a component process

Format

udclient [global-args...] [global-flags...]
  importComponentProcess [parameters] [filename]

Parameters

Table 1. Parameters
Parameter Type Required Description
component string true Name or ID of the component
processUpgradeType string false Supported values are, CREATE_NEW_IF_EXISTS, FAIL_IF_DOESNT_EXIST, FAIL_IF_EXISTS, UPGRADE_IF_EXISTS, USE_EXISTING_IF_EXISTS.

Command to import component process from a JSON file

udclient -username jsmith -password passwd 
  -weburl https://deployserver.example.com:8443
      importComponentProcess 
      -component JPetStore-APP
      ./component-process-Deploy\ component.json

Response

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

Example command to print available options

udclient -username jsmith -password passwd 
  -weburl https://deployserver.example.com:8443
      importComponentProcess -h

Related REST command: Import a component process from a file.