Domain name for API request: sqlserver.intl.tencentcloudapi.com.
This API is used to query 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: DescribeReadOnlyGroupDetails. |
| 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, in the format of mssqlrg-3l3fgqn7. |
| Parameter Name | Type | Description |
|---|---|---|
| ReadOnlyGroupId | String | Read-only group ID. |
| ReadOnlyGroupName | String | Read-only group name. |
| RegionId | String | Region ID of the read-only group, which is the same as that of the primary instance. |
| ZoneId | String | AZ ID of the read-only group, which is the same as that of the primary instance. |
| IsOfflineDelay | Integer | Whether to enable startup timeout elimination, 0 - disable removal, 1 - enable removal. |
| ReadOnlyMaxDelayTime | Integer | Timeout threshold used after the delayed read-only instance removal feature is enabled. |
| MinReadOnlyInGroup | Integer | Minimum number of retained read-only replicas in the read-only group, after the delayed read-only instance removal feature is enabled. |
| Vip | String | Read-only group VIP. |
| Vport | Integer | Read-only group VPort. |
| VpcId | String | VPC ID of the read-only group. |
| SubnetId | String | VPC subnet ID of the read-only group. |
| ReadOnlyInstanceSet | Array of ReadOnlyInstance | Read-only instance replica collection. |
| Status | Integer | Read-only group status: 1 - running after successful application; 5 - applying. |
| MasterInstanceId | String | Primary instance ID. For example, mssql-sgeshe3th. |
| 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=DescribeReadOnlyGroupDetails
&InstanceId=mssql-6f4ddx2f
&ReadOnlyGroupId=mssqlrg-552tyamb
&<Common request parameters>{
"Response": {
"IsOfflineDelay": 1,
"MasterInstanceId": "mssql-6f4ddx2f",
"MinReadOnlyInGroup": 1,
"ReadOnlyGroupId": "mssqlrg-552tyamb",
"ReadOnlyGroupName": "default_name",
"ReadOnlyInstanceSet": [
{
"AccountDifference": "user1;user2;user3;user4",
"Cpu": 1,
"CreateTime": "2020-01-14 21:45:12",
"DatabaseDifference": "db1;db2;db3;db4",
"DelayTime": "0",
"EndTime": "2020-01-16 10:53:13",
"InstanceId": "mssqlro-5k508n7p",
"IsolateTime": "2020-01-16 10:53:13",
"Memory": 2,
"Model": 2,
"Name": "2f2d7800-4c38-4f1e-8522-7cc655763859",
"PayMode": 1,
"ProjectId": 1075687,
"StartTime": "2020-01-14 21:45:12",
"Status": 2,
"Storage": 10,
"SynStatus": "unknow",
"Type": "TS85",
"Uid": "gamedb.gz318.cdb.db",
"UpdateTime": "2020-07-22 15:47:02",
"Version": "2008R2",
"Weight": 1
},
{
"AccountDifference": "user1;user2;user3;user4",
"Cpu": 1,
"CreateTime": "2020-01-14 21:45:12",
"DatabaseDifference": "db1;db2;db3;db4",
"DelayTime": "0",
"EndTime": "2020-06-01 10:53:12",
"InstanceId": "mssqlro-91masbl1",
"IsolateTime": "2020-01-16 10:53:12",
"Memory": 2,
"Model": 2,
"Name": "8d8d8cdd-41fe-4095-9841-a9de01c499da",
"PayMode": 1,
"ProjectId": 1075687,
"StartTime": "2020-01-14 21:45:12",
"Status": 2,
"Storage": 10,
"SynStatus": "unknow",
"Type": "TS85",
"Uid": "gamedb.gz317.cdb.db",
"UpdateTime": "2020-07-22 15:47:03",
"Version": "2008R2",
"Weight": 1
}
],
"ReadOnlyMaxDelayTime": 11,
"RegionId": "ap-guangzhou",
"RequestId": "62cba7ef-4441-4652-9787-2ba5d8f8b4af",
"Status": 1,
"SubnetId": "subnet-gdy95gfs",
"Vip": "10.100.0.44",
"VpcId": "vpc-3xq2t5al",
"Vport": 1433,
"ZoneId": "ap-guangzhou-2"
}
}
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 |
| InternalError.SystemError | System 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