Method: projects.instances.rescheduleMaintenance

Reschedules the maintenance on the given instance.

HTTP request

POST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/rescheduleMaintenance

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

ID of the project that contains the instance.

instance

string

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 (Reschedule)
  }
}
Fields
reschedule

object (Reschedule)

Required. The type of the reschedule the user wants.

Reschedule

JSON representation
{
  "rescheduleType": enum (RescheduleType),
  "scheduleTime": string
}
Fields
rescheduleType

enum (RescheduleType)

Required. The type of the reschedule.

scheduleTime

string (Timestamp format)

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: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

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.