/search/schedulers [GET / POST]

Search available schedulers.


URL Parameters


Name Optional Valid values
start Yes Integer (search schedulers from a start position where last created scheduler is 0, the default)
limit Yes Integer (max schedulers to fetch in each call, default is 100)


Body Parameters


Name Optional Valid values
start No Integer (search schedulers from a start position where last created scheduler is 0, the default)
limit No Integer (max schedulers to fetch in each call, default is 100)
filter Yes Filter may include the following parameters:
  • generic : string, free search pattern (checks in service name, description and properties)
  • time_qualifier : any of the following: [minutes, hours, days, weeks, months, years]
  • time_counter : integer, relates to the time_qualifier
  • from : date of the format YYYY-MM-DD (e.g. 2014-07-10)
  • to : date of the format YYYY-MM-DD (e.g. 2014-07-10)


Request Examples      

## using GET method

curl -k -u admin:admin https://OPERETOHOST/search/schedulers?start=0\&limit=3

    

## using POST method, useful in case of complex filters, for example:
## get all services with property name or value "webserver"

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '{
"start" : 0,
"limit" : 100,
"filter": {
   "generic" : "webserver"
  }
}' https://OPERETOHOST/search/schedulers

        

Response Example     

{
  "status": "success",
  "data": [
    {
      "modified_date": "2015-10-31T13:01:52.938358",
      "name": "my daily scheduler",
      "notifications": "",
      "cron": "0 0 * * *",
      "active": false,
      "user": "admin",
      "item_properties": {
        "key2": "value2",
        "key1": "value1"
      },
      "service_id": "my_service",
      "id": "XOS2FYmFBuk"
    },
    {
      "modified_date": "2015-10-31T13:01:52.964083",
      "name": "my monthly scheduler",
      "notifications": {
        "notify_upon_error": ""
      },
      "cron": "0 0 1 * *",
      "active": true,
      "user": "admin",
      "item_properties": {
        "key2": "value2",
        "key1": "value1"
      },
      "service_id": "my_service",
      "id": "jmIRFJ5c0uy"
    }
  ]
}