Running Daily Maintenance While Skipping the Scheduled Daily Maintenance (v2)
Use this REST API if you want to run daily maintenance with an option to skip the next scheduled daily maintenance.
Required Roles
Service Administrator or any user assigned to the Migrations - Administer granular role
REST Resource
POST /interop/rest/v2/maintenance/rundailymaintenance
Request
Supported Media Types: application/json
Table 11-11 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
skipNext |
Specifies if the next scheduled daily maintenance time should be
skipped, true or false |
String | Yes | false |
Example URL and Payload
https://<BASE URL>/interop/rest/v2/maintenance/rundailymaintenance
Response
Supported Media Types: application/json
{"skipNext":"true"}Table 11-12 Parameters
| Parameters | Description |
|---|---|
details |
In case of errors, details are published with the error string |
status |
See Migration Status Codes |
links |
Detailed information about the link |
href |
Links to API call |
action |
The HTTP call type |
rel |
Possible value: self
|
data |
Null |
Example of Response Body
{
"details": null,
"status": -1,
"items": null,
"links": [
{
"href": " https://<BASE-URL>/interop/rest/v2/maintenance/rundailymaintenance",
"action": "POST",
"rel": "self",
"data": null
},
{
"href": " https://<BASE-URL>/interop/rest/v2/status/service/maintenancewindow/1660115130723",
"action": "GET",
"rel": "Job Status",
"data": null
}
]
}Sample cURL command
curl -X POST -s -u '<USERNAME>:<PASSWORD>' -o response.txt -D respHeader.txt -H 'Content-Type: application/json' -d '{"skipNext":"true"}' 'https://<BASE URL>/interop/rest/v2/maintenance/rundailymaintenance'