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
|
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
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot