Get information about all environments in an application

Request

GET https://{hostname}:{port}
    /cli/application/environmentsInApplication?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
application string true Name or ID of the application
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Example

curl -k -u jsmith:passwd 
   
  "https://deployserver.example.com:8443/cli/application/environmentsInApplication
  ?application=JPetStore"

Example response

[
  {
    "id": "1f97af86-cde3-4ba2-803b-0e4580dcc05b",
    "name": "Tutorial environment 1",
    "description": "",
    "color": "#ffffff",
    "requireApprovals": false,
    "lockSnapshots": false,
    "calendarId": "e237199e-8bbc-497e-97eb-ca2568dff91c",
    "active": true,
    "cleanupDaysToKeep": 0,
    "cleanupCountToKeep": 0,
    "conditions": [
    ]
  }
]

Related CLI command: getEnvironmentsInApplication.