Domain name for API request: sqlserver.intl.tencentcloudapi.com.
This API is used to modify read-only group details.
A maximum of 20 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: ModifyReadOnlyGroupDetails. |
| Version | Yes | String | Common Params. The value used for this API: 2018-03-28. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shanghai-fsi, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| InstanceId | Yes | String | Primary instance ID, in the format of mssql-3l3fgqn7. |
| ReadOnlyGroupId | Yes | String | Read-only group ID. |
| ReadOnlyGroupName | No | String | Read-only group name. The modification is not performed if this parameter is left unspecified. |
| IsOfflineDelay | No | Integer | Whether to enable the delayed read-only instance removal feature. 0 - disabled; 1 - enabled. The modification is not performed if this parameter is left unspecified. |
| ReadOnlyMaxDelayTime | No | Integer | Timeout threshold used after the delayed read-only instance removal feature is enabled. The modification is not performed if this parameter is left unspecified. |
| MinReadOnlyInGroup | No | Integer | Minimum number of retained read-only replicas in the read-only group, after the delayed read-only instance removal feature is enabled. The modification is not performed if this parameter is left unspecified. |
| WeightPairs.N | No | Array of ReadOnlyInstanceWeightPair | Collection of read-only group instance weight modification. The modification is not performed if this parameter is left unspecified. |
| AutoWeight | No | Integer | 0 - user-defined weight (adjust according to WeightPairs); 1 - automatically assigned weight by the system (invalid WeightPairs). The default value is 0. |
| BalanceWeight | No | Integer | 0 - not rebalance the load; 1 - rebalance the load. The default value is 0. |
| 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. |
https://sqlserver.intl.tencentcloudapi.com/?Action=ModifyReadOnlyGroupDetails
&InstanceId=mssql-6f4ddx2f
&ReadOnlyGroupId=mssqlrg-552tyamb
&ReadOnlyGroupName=change_name
&IsOfflineDelay=1
&ReadOnlyMaxDelayTime=18
&MinReadOnlyInGroup=1
&AutoWeight=0
&BalanceWeight=1
&WeightPairs.0.ReadOnlyInstanceId=mssqlro-5k508n7p
&WeightPairs.0.ReadOnlyWeight=50
&WeightPairs.1.ReadOnlyInstanceId=mssqlro-91masbl1
&WeightPairs.1.ReadOnlyWeight=50
&<Common request parameters>{
"Response": {
"RequestId": "4db4cc07-920a-4d04-8627-d45c582e96e7"
}
}
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 |
|---|---|
| InternalError.DBError | Database error |
| InvalidParameter.InputIllegal | Input error. |
| InvalidParameter.ParamsAssertFailed | An error occurred while converting parameter assertion. |
| ResourceNotFound.InstanceNotFound | The instance does not exist. |
| UnauthorizedOperation.PermissionDenied | CAM authentication error. |
Feedback