Set a PostgreSQL Maintenance Window
If you do not choose a maintenance window during the creation of your database, a system-defined maintenance window will be assigned to your database. You can update the window at any time, as shown in the example. For more information, see Maintenance Window.
Endpoint
Use the following endpoint to set a PostgreSQL maintenance window:https://api.ionos.com/databases/postgresql/clusters/{clusterId}
Request
curl --include \
--request PATCH \
--user "clientname@ionos.com:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"metadata": {},
"properties": {
"maintenanceWindow": {
"dayOfTheWeek": "Sunday",
"time": "03:30:00"
}
}
}' \Response
Response
Caution: When your cluster contains only one replica, you may experience a short downtime during this maintenance window while your database instance is being updated. In a replicated cluster, we only update standbys; however, we may perform a switchover to change the leader node.
Last updated
Was this helpful?