- 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/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance
The URL uses gRPC 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 of SqlInstancesRescheduleMaintenanceRequestBody
.
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/sqlservice.admin
For more information, see the Authentication 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, in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
RescheduleType
Enums | |
---|---|
RESCHEDULE_TYPE_UNSPECIFIED |
|
IMMEDIATE |
If the user wants to schedule the maintenance to happen now. |
NEXT_AVAILABLE_WINDOW |
If the user wants to use the existing maintenance policy to find the next available window. |
SPECIFIC_TIME |
If the user wants to reschedule the maintenance to a specific time. |