Class Schedule

java.lang.Object
com.suse.salt.netapi.calls.modules.Schedule

public class Schedule extends Object
salt.modules.schedule
  • Constructor Details

    • Schedule

      private Schedule()
  • Method Details

    • delete

      public static LocalCall<Schedule.Result> delete(String name)
      Delete a schedule entry
      Parameters:
      name - job name
      Returns:
      the result
    • add

      public static LocalCall<Schedule.Result> add(String name, LocalCall<?> call, LocalDateTime once, Map<String,?> metadata)
      Schedule a salt call for later execution on the minion
      Parameters:
      name - job name
      call - salt call schedule
      once - when to execute it once
      metadata - additional metadata
      Returns:
      call object to execute via the client
    • list

      public static LocalCall<Map<String, Map<String,Object>>> list(boolean show_all)
      List scheduled jobs
      Parameters:
      show_all - if true display all the tasks including those with "return_job":false
      Returns:
      call object to execute via the client