Get information about all environments in an application#

Request#

GET https://{hostname}:{port}
    /cli/application/environmentsInApplication?{parameters}
Accept: application/json

Parameter Type Required Description
application string true Name or ID of the application
Parameter Type Required Description
Accept application/json true  

Example#

curl -k -u jsmith:passwd 

  "https://myserver.example.com:8443/cli/application/environmentsInApplication
  ?application=JPetStore"

Example response#

[{
"id": "172e7c08-598b-5438-2d3d-821447b506c7",
"securityResourceId": "172e7c08-5959-a1f3-29a6-16f95b9d2de9",
"name": "Example environment",
"description": "",
"color": "#ffffff",
"requireApprovals": false,
"noSelfApprovals": false,
"lockSnapshots": false,
"calendarId": "172e7c08-5992-49c0-23f6-ccff6c9dcbbe",
"active": true,
"deleted": false,
"snapshotDaysToKeep": 0,
"cleanupDaysToKeep": 0,
"cleanupCountToKeep": 0,
"enableProcessHistoryCleanup": true,
"useSystemDefaultDays": true,
"historyCleanupDaysToKeep": 365,
"requireSnapshot": false,
"gate": {
}
}]

Related CLI command: getEnvironmentsInApplication.

Parent topic: application resource