Set the Daily Maintenance Time (v2)
Use this REST API to set the time (UTC or another time zone) at which the daily maintenance of the environment starts. The maintenance of the environment need not start at the top of the hour; you can set the hour and the minute at which the maintenance should start.
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.
Service Administrators who are currently logged in to the environment using a browser will see the new daily maintenance start time only after they sign out and then sign in.
Required Roes
Service Administrator, or any application role and the Migrations - Administer granular roleREST Resource
PUT /interop/rest/v2/maintenance/setdailymaintenancestarttime
Request
Table 2-222 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
StartTime |
Scheduled time (in HH:MM 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:59. If the start time is not to be set in UTC, specify a valid standard time zone; for example, "14:35 America/Los_Angeles" for 2:35 pm Pacific Standard Time. | Payload | Yes | None |
Example URL and Payload
https://<BASE-URL>/interop/rest/v2/maintenance/setdailymaintenancestarttime
{"startTime":"14:20"}
Response
Supported Media Types: application/json
Table 2-223 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":"14:20"}' 'https://<BASE-URL>/interop/rest/v2/maintenance/setdailymaintenancestarttime'