Develop > API calls > Application environment APIs > List environments associated with the lifecycle stage of an application design

List environments associated with the lifecycle stage of an application design

List all environments that are associated with the lifecycle stage of an application design. designId (Id of application design) and LifecycleStage (name of life cycle stage) parameters are required for executing this API.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-environments/{designId}/{lifecycleStage}/eligible GET
  • designId
  • LifecycleStage

200 - Success
400 - bad request
401 - Authorization failure
404 - not found
500 - Internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-environments/980aa84e-2b04-48f3-af18-7b2595716abb/DEVELOPMENT/eligible

The following JSON was returned:

{ "@total_results": 1, "@self": "/csa/api/resource/environment/", "@type": "urn:x-hp:2012:software:cloud:data_model:resource-environment:collection", "members": [ { "name": "Testing environment", "id": "8a8186da513854bf01513d73dcb50c24", "description": "Testing environment", "icon": "/csa/api/blobstore/other.png?tag=library" } ] }