Setting the Daily Maintenance Time (v1)
Use this REST API to set the daily maintenance window start time.
This topic describes the original version of this REST API. You can also use the simplified v2 version of the REST API. The v2 version contains all parameters in the payload and does not require URL encoding while calling the REST APIs. This makes the v2 API easier to use. The v2 version is backwards compatible.
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 Roles
Service Administrator, or any predefined role and the Migrations - Administer granular role
REST Resource
PUT /interop/rest/{api_version}/services/dailymaintenance?StartTime={N}
Request
Table 11-5 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. | Query | Yes | None |
Response
Supported Media Types: application/json
Table 11-6 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 |
Parameters as key value pairs passed in the request |
Example of Response Body
{
"links": [1]
0: {
"rel":"self",
"href":"https://<BASE-URL>/interop/rest/v1/services/dailymaintenance?StartTime=23"
"data":"null",
"action":"PUT,
}-
-
"details":"null",
"status":"0"
}Maintenance Window Time Sample Code