Develop > API calls > Application life cycle APIs > List life cycle stages

List application lifecycle stages

Lists all lifecycle stages. This API is used by the Codar UI to retrieve packages grouped by life cycle. The default stage sequence is Development >Testing >Staging > Production.

You can optionally provide applicationDesignId (Id of an application design) as parameter. By providing applicationDesignId as parameter, this API lists the lifecycle stages of that particular application design.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/app-lifecycle/stages GET (Optional) applicationDesignId

200 - Successful to list the life cycle stages
400 - Bad request
500 - Internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/app-lifecycle/stages

The following JSON was returned:

Tip { "@total_results": 7, "@self": "/csa/api/codar/app-lifecycle/stages/", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "members": [ { "@self": "/csa/api/codar/app-lifecycle/stages/673b77f2-127b-45a5-81e5-25efbdfcd960", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "TEST_STAGE", "displayName": "test stage", "description": "test stage desc", "icon": "/csa/api/blobstore/Service_Design.png?tag=library", "color": "#ffffff", "roles": [ { "@self": "/csa/api/codar/role/4552b9da88a24767ac7e5b605f050df5", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_ARCHITECT", "displayName": "Application Architect", "description": "The Application Architect can embrace component, create, edit, delete Application and application version, deploy, create, edit and delete package in development stage. Application Architect cannot reject package in any stage.", "icon": "/csa/images/categories/role/application_architect.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/ab0be9f6-ef4f-4bf7-9430-04c0c6776ac5", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "TEST_STAGE3", "displayName": "test stage3", "description": "test stage4 desc", "icon": "/csa/api/blobstore/Service_Design.png?tag=library", "color": "#ffffff", "roles": [ { "@self": "/csa/api/codar/role/4552b9da88a24767ac7e5b605f050df5", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_ARCHITECT", "displayName": "Application Architect", "description": "The Application Architect can embrace component, create, edit, delete Application and application version, deploy, create, edit and delete package in development stage. Application Architect cannot reject package in any stage.", "icon": "/csa/images/categories/role/application_architect.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/02e4ffb1-3c72-4ffa-932b-a4827adabd08", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "TEST_STAGE8", "displayName": "test stage8", "description": "test stage8 desc", "icon": "/csa/api/blobstore/Service_Design.png?tag=library", "color": "#ffffff", "roles": [ { "@self": "/csa/api/codar/role/4552b9da88a24767ac7e5b605f050df5", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_ARCHITECT", "displayName": "Application Architect", "description": "The Application Architect can embrace component, create, edit, delete Application and application version, deploy, create, edit and delete package in development stage. Application Architect cannot reject package in any stage.", "icon": "/csa/images/categories/role/application_architect.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a5", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "DEVELOPMENT", "displayName": "test stage1", "description": "test stage1 desc", "icon": "/csa/api/blobstore/Service_Design.png?tag=library", "color": "#ffffff", "roles": [ { "@self": "/csa/api/codar/role/4552b9da88a24767ac7e5b605f050df5", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_ARCHITECT", "displayName": "Application Architect", "description": "The Application Architect can embrace component, create, edit, delete Application and application version, deploy, create, edit and delete package in development stage. Application Architect cannot reject package in any stage.", "icon": "/csa/images/categories/role/application_architect.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a6", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "TESTING", "displayName": "Testing", "description": "The test cases are executed against the artifacts created in the development stage. The validation and verification of the business and technical requirements are performed on the application.", "icon": "/csa/api/blobstore/lifecycle_stage_testing.png?tag=library", "color": "#fbd75b", "roles": [ { "@self": "/csa/api/codar/role/40faa9a2769b451f8fecd1104260d062", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_QA", "displayName": "Application QA", "description": "The Application QA can deploy, edit, delete and reject package in testing and staging stages and promote package from testing stage to staging stage.", "icon": "/csa/images/categories/role/application_qa.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a7", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "STAGING", "displayName": "Staging", "description": "The pre-production stage in which the artifacts are tested on production like environment.", "icon": "/csa/api/blobstore/lifecycle_stage_staging.png?tag=library", "color": "#dbadff", "roles": [ { "@self": "/csa/api/codar/role/6ff42967987c4a58ab5751817088607d", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_OPERATIONS_MANAGER", "displayName": "Application Operations Manager", "description": "The Application Operations Manager can deploy, reject, edit, delete package in staging stage.", "icon": "/csa/images/categories/role/application_operations_manager.png", "readOnly": true }, { "@self": "/csa/api/codar/role/5e78c029ace644ce8778f3a50f88873b", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_RELEASE_MANAGER", "displayName": "Application Release Manager", "description": "The Application Release Manager can deploy, reject, edit, delete package in staging and production stages and promote package from staging stage to production stage.", "icon": "/csa/images/categories/role/application_releasemanager.png", "readOnly": true } ] }, { "@self": "/csa/api/codar/app-lifecycle/stages/84905d24-d92f-4916-b312-78af206d31a8", "@type": "urn:x-hp:2012:software:cloud:data_model:lifeCycleStage", "name": "PRODUCTION", "displayName": "Production", "description": "The final stage in which the artifacts are deployed and can go live.", "icon": "/csa/api/blobstore/lifecycle_stage_production.png?tag=library", "color": "#ff887c", "roles": [ { "@self": "/csa/api/codar/role/5e78c029ace644ce8778f3a50f88873b", "@type": "urn:x-hp:2012:software:cloud:data_model:role", "name": "CODAR_APPLICATION_RELEASE_MANAGER", "displayName": "Application Release Manager", "description": "The Application Release Manager can deploy, reject, edit, delete package in staging and production stages and promote package from staging stage to production stage.", "icon": "/csa/images/categories/role/application_releasemanager.png", "readOnly": true } ] } ] }