You need to enable JavaScript to run this app.
RDS for PostgreSQL

RDS for PostgreSQL

Copy page
Download PDF
Managing instances
ModifyDBInstanceMaintenanceWindow
Copy page
Download PDF
ModifyDBInstanceMaintenanceWindow
Call the ModifyDBInstanceMaintenanceWindow API to modify the maintenance window of an instance.​
Request type​
Synchronous request.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Is it required?​
Example​
Description​
InstanceId​
String​
Yes​
postgres-ca7b7019****​
Instance ID.​
DayKind​
String​
Yes​
Week​
The granularity of the maintenance cycle, with values of Week.​
DayOfWeekMaintenanceTime​
Array of DayOfWeekObject​
No​
Refer to the request example.​
Maintenance window settings for the instance.​
​
DayOfWeekObject​
​
Parameter​
Type​
Required?​
Example​
Description​
DayOfWeek​
String​
Yes​
Monday,Tuesday​
Specify the maintainable day for the instance each week. Multiple selections allowed.​
  • Monday: Monday.​
  • Tuesday: Tuesday.​
  • Wednesday: Wednesday.​
  • Thursday: Thursday.​
  • Friday: Friday.​
  • Saturday: Saturday.​
  • Sunday: Sunday.​
tip​
If this value is not specified or empty, it defaults to all seven days of the week.​
MaintenanceWindowStartTime​
String​
Yes​
22:00Z​
The instance's start time within the maintenance window on the maintainable day. Format: HH:mmZ (UTC time).​
tip​
Currently, only start times between 16:00Z and 20:00Z are supported for the maintenance window.​
Period​
Integer​
Yes​
6​
Duration of the instance's maintenance window on a maintainable day.​
tip​
The duration is at least 2 hours and at most 6 hours.​
​
Response parameters​
null​
Sample​
Sample request​
​
POST /?Action=ModifyDBInstanceMaintenanceWindow&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"InstanceId": "postgres-ca7b7019****",​
"DayKind": "Week",​
"DayOfWeekMaintenanceTime": [​
{​
"Period": 6,​
"DayOfWeek": "Monday,Tuesday",​
"MaintenanceWindowStartTime": "16:00Z"​
}​
]​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20251010125538DD78BB60C53C19A6A9D8-7fca2b",​
"Action": "ModifyDBInstanceMaintenanceWindow",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
Last updated: 2026.03.31 10:45:19