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

List environments not associated with the lifecycle stage of an application design

List all environments that are not associated with the lifecycle stage of an application design. appDesignId and LifecycleStage parameters are required for executing this API.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-environments/dissociate GET
  • appDesignId
  • 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/dissociate?appDesignId=980aa84e-2b04-48f3-af18-7b2595716abb&lifecycleStage=DEVELOPMENT

The following JSON was returned:

{ "members": [ { "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a5", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "id": "84905d24-d92f-4916-b312-78af206d31a5", "name": "DEVELOPMENT", "displayName": "test stage1", "description": "test stage1 desc", "count": "3", "color": "#ffffff", "icon": "/csa/api/blobstore/Service_Design.png?tag=library", "environments": [ { "@self": "/csa/api/resource/environment/8a8186da510f5cd80151340c64432359", "@type": "urn:x-hp:2012:software:cloud:data_model:resource-environment", "id": "8a8186da510f5cd80151340c64432359", "name": "vCenter", "icon": "/csa/images/library/other.png" }, { "@self": "/csa/api/resource/environment/8a8186da513854bf01513862b01c007b", "@type": "urn:x-hp:2012:software:cloud:data_model:resource-environment", "id": "8a8186da513854bf01513862b01c007b", "name": "HDP", "icon": "/csa/images/library/other.png" }, { "@self": "/csa/api/resource/environment/8a8186da513854bf01513d733be40c22", "@type": "urn:x-hp:2012:software:cloud:data_model:resource-environment", "id": "8a8186da513854bf01513d733be40c22", "name": "Application Development", "description": "Application Development", "icon": "/csa/images/library/software_application_tier.png" } ] } ] }