tencent cloud

APIs

ModifyTimeWindow

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-06-09 16:30:39

1. API Description

Domain name for API request: cdb.intl.tencentcloudapi.com.

This API (ModifyTimeWindow) is used to update the maintenance time window of a TencentDB instance.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyTimeWindow.
Version Yes String Common Params. The value used for this API: 2017-03-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
InstanceId Yes String Instance ID, which can be obtained through the DescribeDBInstances API.
TimeRanges.N Yes Array of String The modified maintenance time slot. Among them, each time period is in the format of 10:00-12:00. The start and end time is aligned by half hour. The shortest is half hour and the longest is three hours. Up to two time periods can be set. The start and end time ranges from [00:00, 24:00].
Description: The following is an example of setting two time periods in json.
[
"01:00-01:30",
"02:00-02:30"
]
Weekdays.N No Array of String Specify which day to modify the maintenance time slot. Possible values are: monday, tuesday, wednesday, thursday, friday, saturday, sunday. If not specified or empty, modify all seven days of the week by default.
Description: The json example for modifying more than one day is as follows.
[
"monday",
"tuesday"
]
MaxDelayTime No Integer Data latency threshold (seconds), only applicable to primary instance and disaster recovery instance. No modification by default to keep the original threshold. Value ranges from 1 to 10 integers.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Updating a maintenance time window

Input Example

https://cdb.intl.tencentcloudapi.com/?Action=ModifyTimeWindow
&InstanceId=cdb-eb2w7dto
&TimeRanges.0=03:00-03:30
&Weekdays.0=monday
&MaxDelayTime=10
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "1a42feb9-82087f71-6a0031ac-699a92a8"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM signature/authentication error.
InternalError.DBOperationError Database operation failed.
InternalError.DatabaseAccessError Internal database error.
InternalError.UnknownError Unknown error
InvalidParameter Parameter error.
InvalidParameter.InstanceNotFound The instance does not exist.
InvalidParameterValue.InvalidParameterValueError Invalid parameter value
OperationDenied Operation denied.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック