List promotion schedules for month

This API lists the promotion schedules for a particular design ID for a specific month.

URI Method Parameters Returns
/codar/app/scheduler/{designId}/scheduledCount POST designId - ID of the application design for retrieve promote schedulers

200 - updated
400 - bad request
404 - not found

{

"month":"08",

"year":"2016"

}

  Month and year for which promotion schedules need to be retrieved. Valid values for month are between 1 to 12.  

Examples

The following URL was sent:

https://localhost:8444/csa/api/codar/app/scheduler/listPromoteSchedulersForMonth/cfc40fe6-7884-4e74-93c1-a8f91e02e422/2

The response is a day wise listing of all the promotion schedules in the month and year. Count is the number of promotion schedules for the month.

The following JSON was returned:
{
"members": [
{
"date": "07/01/2016",
"count": 2,
"promotionSchedule": [
{
"name": "Scheduler2",
"modelType": "TOPOLOGY",
"packageName": "package",
"scheduledOn": "2016/07/01 03:03:00",
"status": "PENDING",
"lifeCycleStageName": "DEVELOPMENT",
"scheduleId": "92201fe5-2b90-43c1-ab86-bf880a4a0b43"
},
{
"name": "Scheduler1",
"modelType": "TOPOLOGY",
"packageName": "package",
"scheduledOn": "2016/07/01 03:03:00",
"status": "PENDING",
"lifeCycleStageName": "DEVELOPMENT",
"scheduleId": "e4a44e1b-8d15-443f-acb9-0db58df60ab1"
}
]
},
{
"date": "07/02/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/03/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/04/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/05/2016",
"count": 1,
"promotionSchedule": [
{
"name": "Scheduler3",
"modelType": "TOPOLOGY",
"packageName": "package",
"scheduledOn": "2016/07/05 03:03:00",
"status": "PENDING",
"lifeCycleStageName": "DEVELOPMENT",
"scheduleId": "48816973-113a-464a-97a8-3ac906a3e831"
}
]
},
{
"date": "07/06/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/07/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/08/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/09/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/10/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/11/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/12/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/13/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/14/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/15/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/16/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/17/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/18/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/19/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/20/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/21/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/22/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/23/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/24/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/25/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/26/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/27/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/28/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/29/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/30/2016",
"count": 0,
"promotionSchedule": []
},
{
"date": "07/31/2016",
"count": 0,
"promotionSchedule": []
}
]
}