Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.0
-
None
Description
API call:
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d '[{"RequestSchedule":{"batch":[{"requests":[{"order_id" : "1","type":"POST","uri":"/api/v1/clusters/c1/requests","RequestBodyInfo":{"RequestInfo":{"context":"Restart Nagios","command":"RESTART","service_name":"NAGIOS","component_name":"NAGIOS_SERVER","hosts":"c6401.ambari.apache.org"}}}]},{"batch_settings":{"batch_separation_in_seconds":120,"task_failure_tolerance":1}}]}}]' http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/request_schedules
Request Schedule:
{ href: "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/request_schedules/23", RequestSchedule: { batch: { batch_requests: [ { order_id: 1, request_type: "POST", request_uri: "/api/v1/clusters/c1/requests", request_body: "{"RequestInfo":{"context":"Restart Nagios","command":"RESTART","service_name":"NAGIOS","component_name":"NAGIOS_SERVER","hosts":"c6401.ambari.apache.org"}}", request_status: "InProgress", return_code: 202 } ], batch_settings: { batch_separation_in_seconds: 120, task_failure_tolerance_limit: 1 } }, cluster_name: "c1", description: null, id: 23, last_execution_status: "InProgress", schedule: null, status: "SCHEDULED" } }
Attachments
Attachments
Issue Links
- is required by
-
AMBARI-4032 Ability to schedule a recurring request execution of an Action/Command
- Resolved
- links to