Mengkueri diagnosis konektivitas jaringan ketika pengguna mengakses Instansiasi basis data tertentu dengan menentukan alamat IP.
Deskripsi operasi
Before you call this operation, take note of the following items:
If you use an Alibaba Cloud SDK or Database Autonomy Service (DAS) SDK to call this operation, we recommend that you use the latest version of the SDK.
If you use an SDK to call API operations of DAS, you must set the region ID to cn-shanghai.
The database instance that you want to manage is connected to DAS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:GetDBInstanceConnectivityDiagnosis |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
rm-2ze8g2am97624**** |
| SrcIp |
string |
Yes |
Alamat IP sumber. |
47.110.180.62 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code returned. |
200 |
| Message |
string |
The returned message. Catatan
If the request was successful, Successful is returned. Otherwise, an error message such as an error code is returned. |
Successful |
| Data |
object |
The detailed information. |
|
| instanceId |
string |
The instance ID. |
rm-2ze8g2am97624**** |
| success |
boolean |
Indicates whether the connectivity test was passed:
|
false |
| failType |
string |
The type of the exception:
|
0 |
| connCheckErrorCode |
string |
The exception detection items:
|
SRC_IP_NOT_IN_USER_WHITELIST |
| connCheckErrorMessage |
string |
The details of the exception detection. |
Src ip:47.110.180.62 not in user whitelist |
| RequestId |
string |
The request ID. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "Successful",
"Data": {
"instanceId": "rm-2ze8g2am97624****",
"success": false,
"failType": "0",
"connCheckErrorCode": "SRC_IP_NOT_IN_USER_WHITELIST",
"connCheckErrorMessage": "Src ip:47.110.180.62 not in user whitelist"
},
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.