Develop > API calls > Gate requests APIs > List all promotion requests

List all promotion requests

Lists all promotion requests. This API takes the PackageId and (optional) lifecycleStage as parameters.

URI Method Parameters Returns
http://[host]:[port]/csa/api/codar/release-gate/gate-request/{packageId} GET
  • PackageId
  • (Optional) lifecycleStage

200 - successful
400 - bad request
404 - not found
500 - Internal server error

Example

The following URL was sent:

https://localhost:8444/csa/api/codar/release-gate/gate-request/a3eb6d50-5b6a-4dad-ac7b-fc81032c81c2

The following JSON was returned:

{
  "@type": "urn:x-hp:2012:software:cloud:data_model:ReleaseGateRequest",
  "@total_results": "1",
  "members": [
    {
      "@self": "/csa/codar/release-gate/gate-request/48feb259-3d24-464b-be59-1661b5fb7266",
      "id": "48feb259-3d24-464b-be59-1661b5fb7266",
      "sourceStage": "DEVELOPMENT",
      "destStage": "PRODUCTION",
      "lastUpdated": "2015-11-20T06:23:14.623Z",
      "startTime": "2015-11-20T06:23:14.623Z",
      "endTime": "2015-11-20T06:25:00.277Z",
      "message": "{\"packageId\":\"a3eb6d50-5b6a-4dad-ac7b-fc81032c81c2\"}",
      "createdBy": "admin",
      "userAllowed": true,
      "status": "COMPLETED"
    }
  ]
}