Develop > API calls > Package APIs > Redeploy a package

Redeploy a package

Redeploys a package on an existing active deployment (service instance) belonging to same life cycle stage and user.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package/{packageID}/redeploy POST

Path Parameter - Packge ID to redeploy

RequestBody - A JSON containing the serviceInstanceId on which to redeploy the package, and a redeployProperties.

200 - successful
400 - bad request
401 - not authorized
501 - internal server error

Example

The following JSON was sent in the requestBody parameter:

{ "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"}

   ]
}

The following JSON was returned:

{ "serviceInstanceId":"8a81841f4b733315014b76c191b70099 }