Develop > API calls > Scheduler APIs > List promotion schedule

List promotion schedule

This API lists all the promotion schedules for a specified package.

URI Method Parameters Returns
/codar/app/scheduler/{packageId}/promote GET packageId - the package Id of the package whose schedules should be listed

200 - updated
400 - bad request
404 - not found

Examples

The following URL was sent:

https://localhost:8444/csa/api/codar/app/scheduler/{packageId}/promote?packageId=8d40f511-0d8c-458a-bcb9-8281154c5350

The following JSON was returned:

{
"members": [
{
"@self": "/csa/api/codar/app/scheduler/d3529b45-19ec-4823-a704-7e87e06906f1",
"@type": "urn:x-hp:2012:software:cloud:data_model:scheduler",
"id": "d3529b45-19ec-4823-a704-7e87e06906f1",
"name": "Schedule For Promote in testing",
"scheduledOn": "2016-04-29T12:00:00.000Z",
"status": "PENDING",
"eventType": "ONE_TIME",
"type": "PROMOTION",
"createdBy": "admin",
"createdOn": "2016-04-28T08:41:38.063Z",
"promotionSchedule": {
"comments": "Schedule for the Testing stage",
"packageId": "8d40f511-0d8c-458a-bcb9-8281154c5350",
"fromStage": "TESTING",
"fromStageDisplayName": "Testing"
}
},
{
"@self": "/csa/api/codar/app/scheduler/bb0560ba-371d-48d7-8962-bfdb3419efb9",
"@type": "urn:x-hp:2012:software:cloud:data_model:scheduler",
"id": "bb0560ba-371d-48d7-8962-bfdb3419efb9",
"name": "Schedule For Promote in staging",
"scheduledOn": "2016-04-30T09:00:00.000Z",
"status": "PENDING",
"eventType": "ONE_TIME",
"type": "PROMOTION",
"createdBy": "admin",
"createdOn": "2016-04-28T08:41:38.084Z",
"promotionSchedule": {
"comments": "",
"packageId": "8d40f511-0d8c-458a-bcb9-8281154c5350",
"fromStage": "STAGING",
"fromStageDisplayName": "Staging"
}
}
]
}