Develop > API calls > Application life cycle APIs > List life cycle stages of the default template

List lifecycle stages of the default template

Lists the lifecycle stages of the default template.

URI Method Parameters Returns
http://[host]:[port]/api/codar/app-lifecycle/stages/template GET  

200 - Successful to list life cycle stages found
400 - Bad request
500 - Internal Server error

Example

The following URL was sent:

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

The following JSON was returned:

{
  "@total_results": 4,
  "@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/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"
    },
    {
      "@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"
    },
    {
      "@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"
    },
    {
      "@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"
    }
  ]
}