Method: projects.instances.rescheduleMaintenance Stay organized with collections Save and categorize content based on your preferences.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- SqlInstancesRescheduleMaintenanceRequestBody
- Reschedule
- RescheduleType
- Examples
- Try it!
Reschedules the maintenance on the given instance.
HTTP request
POST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/rescheduleMaintenance
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
project |
ID of the project that contains the instance. |
instance |
Cloud SQL instance ID. This does not include the project ID. |
Request body
The request body contains an instance ofSqlInstancesRescheduleMaintenanceRequestBody.
Response body
If successful, the response body contains an instance ofOperation.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/sqlservice.admin
For more information, see theAuthentication Overview.
SqlInstancesRescheduleMaintenanceRequestBody
Reschedule options for maintenance windows.
| JSON representation |
|---|
{"reschedule":{object ( |
| Fields | |
|---|---|
reschedule |
Required. The type of the reschedule the user wants. |
Reschedule
| JSON representation |
|---|
{"rescheduleType":enum ( |
| Fields | |
|---|---|
rescheduleType |
Required. The type of the reschedule. |
scheduleTime |
Optional. Timestamp when the maintenance shall be rescheduled to if rescheduleType=SPECIFIC_TIME, inRFC 3339 format, for example Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
RescheduleType
| Enums | |
|---|---|
RESCHEDULE_TYPE_UNSPECIFIED | |
IMMEDIATE | Reschedules maintenance to happen now (within 5 minutes). |
NEXT_AVAILABLE_WINDOW | Reschedules maintenance to occur within one week from the originally scheduled day and time. |
SPECIFIC_TIME | Reschedules maintenance to a specific time and day. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-27 UTC.