Schedules

1. List Schedules

Retrieves a list of Schedules for a given tenant. List contains schedules of templates and scripts. ID in the output is referred as Schedule ID

Syntax
(.venv)$ corestack schedules-list

Parameters

None

Sample Output

2. View Schedule

Retrieves a schedule by its ID. Schedule ID can be fetched from the output of schedules-list command. Name, Schedule, Arguments involved in the execution, Created By etc., will be available as output

Syntax
(.venv)$ corestack schedules-show <schedules_id >

Parameters

Attributes Description
schedule_id Required.ID of the CoreStack Schedule to be retrieved

Sample Output

3. Delete Schedule

Deletes a schedule by its ID. Schedule ID can be fetched from the output of schedules-list command. Delete Status will be displayed as output

Syntax
(.venv)$ corestack schedule-delete <schedule_id>

Parameters

Attributes Description
schedule_id Required. ID of the CoreStack Schedule to be deleted

Sample Output

4. Create Schedule

Creates a schedule in the given tenant. Templates, Scripts and Blueprint can be scheduled. Schedule can be recurring or per time execution as per the need. Schedule ID will be returned as output.

Syntax
(.venv)$ corestack schedule-create <body>

Parameters

Attributes Description
body Required. JSON content with the needed inputs to create a schedule

Example:
{
“status”: “active”,
“description”: “test”,
“schedule”: {
“month”: “*”,
“year”: “*”,
“weekday”: {
“day”: “*”
},
“time”: {
“seconds”: “06”,
“minute”: “44”,
“hour”: “18”
}
},
“args”: {
“to_email”: “arun.p@cloudenablers.com”
},
“retry”: “0”,
“resource”: [“591ed88507e312373801d441”],
“name”: “schedule_name”,
“loglevel”: “INFO”,
“notification”: {},
“timeout”: “”,
“attributes”: {
“service_accounts”: [{
“region”: “useast1”,
“id”: “598c061207e3123db95835c2”
}],
“resource_elements”: []
},
“type”: “template”
}

Sample Output