Updated on 2026-01-13 GMT+08:00

Testing Asset Connectivity

Function

This API is used to test the connectivity of a specified database asset to check whether the database can be accessed and connected.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/sdg/asset/databases/{db_id}/reconnect

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

db_id

Yes

String

Database ID, which identifies a database asset.

project_id

Yes

String

Project ID, which is used to identify a specific project.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

msg

String

Returned message, which is used to describe the operation result or error information.

status

String

Return status, for example, '200', '400'.

Status code: 201

The connectivity test is complete.

Example Requests

POST /v1/{project_id}/sdg/asset/databases/{db_id}/reconnect

Example Responses

None

Status Codes

Status Code

Description

200

The connectivity test is passed.

201

The connectivity test is complete.

401

Unauthorized access. The request is rejected.

403

Unauthorized operation. The request is rejected.

404

The specified database or project does not exist. The test failed.

Error Codes

See Error Codes.