Develop > API calls > Package APIs > List packages

List packages

Retrieve a list of all packages for an application design. The Redeploy field indicates if the design can be redeployed. The Deployment State field indicates NEW when a package is created, DEPLOYED when a package is deployed and NO_ACTIVE_DEPLOYMENTS when there are no deployments.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package/list GET
  • applicationDesignID - Obtains the list of application packages for the specified application Design ID
  • lifecycleStage - Obtains the list of application packages for the specified life cycle stage.
  • startIndex - Specifies the offset of the first entry to be included in the page.
  • pageSize - Specifies the number of package deployment instances to be returned.

200 - successful
400 - bad request
401 - not authorized
404 - not found
500 - internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-package/list

The following JSON was returned:

{
   "@self": "/csa/api/package/",
  "@type": "urn:x-hp:2012:software:cloud:data_model:package",
  "redeploy": false,
  "members": [
   {
     "@type": "urn:x-hp:2012:software:cloud:data_model:package",
     "name": "DEVELOPMENT",
     "color": "#D1AF89",
      "image": "images/applications/dev.png",
     ...
}

For complete output, see List packages example.