Domain name for API request: cdb.tencentcloudapi.com.
This API (AddTimeWindow) is used to add a maintenance time window for a TencentDB instance, so as to specify when the instance can automatically perform access switch operations.
A maximum of 100 requests can be initiated per second for this API.
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: AddTimeWindow. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-20. |
Region | No | String | Common Params. This parameter is not required for this API. |
InstanceId | Yes | String | Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. |
Monday.N | No | Array of String | Maintenance window on Monday. The format should be 10:00-12:00. You can set multiple time windows on a day. Each time window lasts from half an hour to three hours, and must start and end on the hour or half hour. At least one time window is required in a week. The same rule applies to the following parameters. |
Tuesday.N | No | Array of String | Maintenance window on Tuesday. At least one time window is required in a week. |
Wednesday.N | No | Array of String | Maintenance window on Wednesday. At least one time window is required in a week. |
Thursday.N | No | Array of String | Maintenance window on Thursday. At least one time window is required in a week. |
Friday.N | No | Array of String | Maintenance window on Friday. At least one time window is required in a week. |
Saturday.N | No | Array of String | Maintenance window on Saturday. At least one time window is required in a week. |
Sunday.N | No | Array of String | Maintenance window on Sunday. At least one time window is required in a week. |
MaxDelayTime | No | Integer | Maximum delay threshold, which takes effect only for source instances and disaster recovery instances. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://cdb.tencentcloudapi.com/?Action=AddTimeWindow
&InstanceId=cdb-eb2w7dto
&Monday.0=02:00-03:00
&MaxDelayTime=10
&<Common request parameters>
{
"Response": {
"RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
InvalidParameter | Parameter error. |
InvalidParameter.InstanceNotFound | The instance does not exist. |
InvalidParameter.ResourceExists | The resource already exists. |
Was this page helpful?