Failed to put device in maintenance mode through rest web api

Document ID : KB000010528
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

The user was trying to put devices in maintenance using UIM webservices and getting below error.

Not Found

The requested resource was not found. 

http://<UMP Server>/maintenance_mode/<Domain>/<HubName>/<robotname>/add_schedule

 

Background:
Environment:
UIM 8.5Nimsoft RESTful web services interface: version: 8.4.0, build_number: 132347
Instructions:

You will have install rest client add-on for firefox or chrome and run the calls from there 

https://addons.mozilla.org/en-US/firefox/addon/restclient/ 

 

Example

========== 

/maintenance_mode/{domain}/{hub}/{robot}/add_schedule 

http://<UMP Server>:<port>/rest/maintenance_mode/<domain>/<hub>/<robot>/add_schedule 

robot name is where the maintenance_mode probe is installed

-> Create a Schedule 

https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/probe-development-tools/restful-web-services/call-reference/maintenance-calls#MaintenanceCalls-CreateaSchedule

-> Inputs for Maintenance Schedule Calls 

https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/probe-development-tools/restful-web-services/call-reference/maintenance-calls#MaintenanceCalls-InputsforMaintenanceScheduleCalls 

Refer attached document for more maintenance_webservice_example.docx details

Additional Information:

Note:The minimum required inputs to add a schedule for maintenance mode are the schedule start date/time and end date/time or duration.

File Attachments:
TEC1456361.zip