Updated on 2026-01-08 GMT+08:00

Configuring the Maintenance Window

API Description

This API is used to modify the time range within which you are allowed to start a task that affects the running of database instances, for example, the time window for upgrading the operating system and database software.

URI

  • URI format
    PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/maintenance-window
    Table 1 Path parameters

    Name

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID.

    instance_id

    Yes

    String

    Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

Request Parameters

Table 2 Request header parameters

Name

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

Table 3 Request body parameters

Name

Mandatory

Type

Description

start_time

Yes

String

Start time. The value must be a valid value in the "HH:MM" format. The current time is the UTC time. The value cannot be the same as the end time and must be on the hour.

end_time

Yes

String

End time. The value must be a valid value in the "HH:MM" format. The current time is the UTC time. The value cannot be the same as the start time and must be on the hour.

  • Request example

    Example of configuring the maintenance window

    { 
      "start_time" : "14:00",
      "end_time" : "15:00"
    }

Response Parameters

None

Example response

None

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.