Plan schedules
The ayx one plans schedules command returns the schedules configured for a plan. Schedule lifecycle operations are available through ayx one scheduling.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx one plans schedules |
List schedules for a plan |
List schedules for a plan
Section titled “List schedules for a plan”ayx one plans schedules <plan-id>ayx one plans schedules <plan-id> --profile <name>Returns all schedules attached to the plan. Each schedule entry includes the recurrence definition, enabled state, and next run time.
JSON output
Section titled “JSON output”ayx -o json one plans schedules <plan-id>The response follows the standard envelope:
{ "ok": true, "message": "...", "timestamp_utc": "...", "data": [...]}data contains the array of schedule records.
Automation patterns
Section titled “Automation patterns”Check whether a plan has any active schedules
Section titled “Check whether a plan has any active schedules”ayx -o json one plans schedules <plan-id> \ | jq '[.data.items[] | select(.enabled == true)] | length'List all plans with their next run times
Section titled “List all plans with their next run times”ayx -o json one plans list --all | jq -r '.data.items[].id' \ | while IFS= read -r id; do ayx -o json one plans schedules "$id" \ | jq -r --arg id "$id" '.data.items[] | [$id, .nextFireDate] | @tsv' done