The APIs given below allow you to work with downtime schedules in SQLDBManagerPlus:
The common parameters involved in these API requests are described below:
Field | Description |
apikey | The key generated from the Generate API Key option in the 'Admin' tab. |
taskName | The name of the maintenance task. This should be a unique value. |
taskType | The type of task to be created. The options are monitor and group |
taskStatus | Current status of the schedule. You have to choose from either 'enable' or 'disable' |
taskid | The unique identifier for the task |
resourceid | The resource id of the monitor for which the schedule has to be created |
Sample Request:
This example helps you to create a downtime schedule in SQLDBManagerPlus:
http://sqldbm-windows:9433/AppManager/xml/CreateMaintenanceTask?apikey=bdd4d0643c6f591e123b7ba6fb69d9dd&taskMethod=daily
&taskStartTime=20:00&taskEndTime=21:00&taskStatus=disable&taskEffectFrom=2010-05-24%2016:48&taskName=dr1&taskType=monitor&resourceid=10000055
If the API is not executed correctly, the request will fail and errors will be thrown. Refer this page for a list of common error conditions.