Setting the Daily Maintenance Time (v2)
Use this REST API to set the daily maintenance window start time.
Note:
To ensure that the use of this API does not interfere with the Oracle requirement for creating backups, this API will not change the maintenance start time if the daily maintenance process did not run in the last 36 hours.
Required Roes
Service Administrator, or any predefined role and the Migrations - Administer granular roleREST Resource
PUT /interop/rest/v2/maintenance/setdailymaintenancestarttime
Request
Table 12-7 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
StartTime |
Scheduled time (in HH:00 format using a 24 hour clock) at which the maintenance process should start and an optional time zone. Acceptable start time value range is 00:00 - 23:00. If the start time is not to be set in UTC, specify a valid standard time zone; for example, "14:00 America/Los_Angeles" for 2:00 pm Pacific Standard Time. | Payload | Yes | None |
Example URL and Payload
https://<BASE URL>/interop/rest/v2/maintenance/setdailymaintenancestarttime
{"startTime":"08:00"}
Response
Supported Media Types: application/json
Table 12-8 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": 0,
"items": null,
"links": [
{
"href": " https://<BASE-URL>/interop/rest/v2/maintenance/setdailymaintenancestarttime",
"action": "PUT",
"rel": "self",
"data": null
}]
}
Sample cURL command
curl -X PUT -s -u '<USERNAME>:<PASSWORD>' -o response.txt -D respHeader.txt -H 'Content-Type: application/json' -d '{"startTime":"08:00"}' 'https://<BASE-URL>/interop/rest/v2/maintenance/setdailymaintenancestarttime'