(Click to open topic with navigation)
GET
curl -u 'moab-admin:changeme!' \ 'http://localhost:8080/mws/rest/jobs?api-version=3&pretty=true'
POST
curl -u 'moab-admin:changeme!' \ -X POST \ -H 'Content-Type: application/json' \ -d '{"commandFile":"/tmp/test.sh","initialWorkingDirectory":"/tmp","credentials":{"group":"adaptive","user":"adaptive"},"requirements":[{"taskCount":4}]}' \ 'http://localhost:8080/mws/rest/jobs?api-version=3'
PUT
curl -u 'moab-admin:changeme!' \ -X PUT \ -H 'Content-Type: application/json' \ -d '{"holds":["user"]}' \ 'http://localhost:8080/mws/rest/jobs/Moab.93?api-version=3'
DELETE
curl -u 'moab-admin:changeme!' \ -X DELETE \ 'http://localhost:8080/mws/rest/jobs/Moab.93?api-version=3'
Related Topics