Develop > API calls > Package APIs > Get application package details

Get application package details

Retrieves application package details including topology, deployed instance, and life cycle stage.

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

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

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-package/5975ad69-0519-484b-bde3-30b936dd31b

The following JSON was returned:

{
  "@self": "/csa/api/package/455274d8-80dc-4bff-a6cd-4d15408bffe0",
  "@type": "urn:x-hp:2012:software:cloud:data_model:package",
  "stage": "TESTING",
  "state": "ACTIVE",
  "deploymentState": "DEPLOYED",
  "icon": "images/applications/dev.png",

  "name": "package 3"
  "deployedInstanceCount": "1",   

  "lastUpdated": "2015-03-06T04:34:59.087Z",
  "description": null,
  "topologyData": {
    "id": "b2c076af-7992-4301-bc88-b0a392a189f6",

    "partialDesign": false,
    "name": "vCenter Design",

    "iconurl": "/csa/images/library/HomeServer.png",
    "version": "1.0.0"
  },
  "instanceData": [
    {
      "statusDisplayName": "Deploying",
      "createdOn": "2015-03-09T06:09:30.425Z",

      "id": "8a8184694bee585b014bfd270f390004",
      "blueprintId": "8a8184694be3279e014be3921e4702d6",

      "createdBy": "admin"
      "status": "DEPLOYING",
      "iconUrl": "/csa/images/categories/service_instance_state/deploying.png",

      "deploymentStage": "TESTING"
      "displayName": "package 3:deploy"

    }
  ]
}