Develop > API calls > Package APIs > Get package states

Get package states

Retrieves package states.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-package/states GET None

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/states

The following JSON was returned:

{
  "@total_results": 2,
  "@self": "/csa/api/package/states",
  "@type": "urn:x-hp:2012:software:cloud:data_model:packageState",
  "members": [
  {
    "name": "ACTIVE"
  },
 {
    "name": "REJECTED"
  ]
 }