Redeploy a package

Redeploys a package on a given active deployment instance for the user. The instance should be deployed in the same life cycle stage.

Note: This command is only applicable to topology designs.
Command Alias Syntax
package redeploy pkg redeploy package redeploy –pid <packageID> –name <name> -depid <deploymentID> [-in input-file>]

Options

Option Description
-pid, --<packageID>

Application package ID. Use the List application packages command to obtain the package ID.

-name, --<name> Name of the deployment.
-depid, --<deploymentID> Application deployment ID. Use the List deployments command to obtain the application deployment ID. The deployment must be in an ACTIVE or FAILED state.
-in, --<input-file> Input file containing the modifiable properties in JSON format.
-s, --server The URL of the HCM ARA instance. For example, https://localhost:8444/csa.
-u, --user The HCM ARA username.
-p, --password The password for the HCM ARA user.
-c, --config A file that contains default general option values in the format “<name>=<value>“, where <name> is “server”, “user”, or “password”. If not specified, the cliforcodar.properties file in the home directory of the current user is used if it exists.

Usage guidelines

This command must be pre-defined in a configuration file or defined in the command line. The --server(-s) option defaults to localhost value(s) if it is not pre-defined in a configuration file.

Example

The following JSON input was provided:

{   "name":"redeployName",   "serviceInstanceId":"8a81841f4b733315014b76c191b70099",   "redeployProperties":[{"id":"VcenterServerType__VERSION__04.20.0000__GROUPID__com.hp.csa.type0001",     "itemType":"NODE",     "propertyName":"cpuCount",     "propertyType":"string",     "propertyValue":"4"},     {"id":"VcenterServerType__VERSION__04.20.0000__GROUPID__com.hp.csa.type0001",     "itemType":"NODE",     "propertyName":"memorySize",     "propertyType":"string",     "propertyValue":"1024"}] }
C:\CODAR\clis> codarexec.bat pkg redeploy -name redeploypkg -pid b3364704-ff76-44a2-88bd-90064a21b9b9 -depid 8a8187834c6ff639014cd662e3961483 

Redeployment for the package “b3364704-ff76-44a2-88bd-90064a21b9b9” with service instance id “8a8187834c6ff639014cd662e3961483” is initiated.