The State REST API uses the GET /api/state
HTTP method and URI to retrieve a snapshot of the Myriad Scheduler state including pending, staging, active, and killable tasks.
HTTP Method and URI
GET /api/state
Syntax
<localhost>:8192/api/state
Request Example
Curl request example:
curl http://10.10.100.19:8192/api/state | python -m json.tool
URL request example:
http://10.10.100.19:8192/api/state
Request header:
GET /api/state HTTP/1.1 Host: 10.10.100.19:8192 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8
Response Example
{ "activeTasks": [], "killableTasks": [], "pendingTasks": [ "nm.medium.ea564a5b-3a77-47dc-a7fe-2ff88ae2d5ed" ], "stagingTasks": [] }