All Products
Search
Document Center

Database Autonomy Service:GetDBInstanceConnectivityDiagnosis

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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:

  • true

  • false

false

failType

string

The type of the exception:

  • 0: an exception that can be handled by the user.

  • 1: an exception that can be handled by a technical engineer.

0

connCheckErrorCode

string

The exception detection items:

  • SRC_IP_NOT_IN_USER_WHITELIST: The source IP address is not added to the whitelist of the user.

  • VIP_NOT_EXISTS: The Application Load Balancer (ALB) instance corresponding to the virtual IP address (VIP) does not exist.

  • RS_NOT_EXISTS: The resource sharing (RS) is not properly mounted.

  • VIP_TUNNEL_ID_NOT_CONSISTENT: The tunnel ID used by the VIP of the virtual private cloud (VPC) type is different from the tunnel ID of the VPC.

  • VIP_VPC_CLOUD_INSTANCE_NOT_EXISTS: The VIP of the VPC type does not exist.

  • VIP_IS_NOT_NGLB: The NGLB mode is disabled for the VIP.

  • CUSTINS_NOT_ASSOCIATE_ECS_SECURITY_GROUP: No security group is associated with the instance.

  • SRC_IP_NOT_IN_USER_WHITELIST: The source IP address is not added to the whitelist of the user.

  • SRC_IP_NOT_IN_ADMIN_WHITELIST: The source IP address is not added to the whitelist of the instance.

  • SRC_IP_NOT_IN_ECS_SECURITY_GROUP: The source IP address is not added to the security group that is associated with the instance.

  • VPC_INSTANCE_IP_NOT_WORKING_STATUS: The IP address in the VPC is in an abnormal state.

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

  • false

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.