Checking RDS Connectivity (a V3 API)
Function
This API is used to check the RDS connectivity.
Constraints
None
API Calling
For details, see Calling APIs.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions Policies and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
URI
POST /v3/{project_id}/instances/{instance_id}/rds/connection
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints N/A Range The value contains 32 characters. Only letters and digits are allowed. Default Value N/A |
| instance_id | Yes | String | Definition Instance ID, which uniquely identifies an instance. Constraints N/A Range The value contains 36 characters with a suffix of in09. Only letters and digits are allowed. Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| infos | Yes | Array of EsdbCheckRdsConnectionRequestV3 objects | Definition A collection of information related to checking RDS connectivity. Constraints N/A Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| endpoint | Yes | String | Definition Private IP address and database port of the RDS instance. The format is xx.xx.xx.xx:xx. Constraints N/A Range N/A Default Value N/A |
| username | Yes | String | Definition RDS account. Constraints N/A Range N/A Default Value N/A |
| password | Yes | String | Definition RDS account password. Constraints N/A Range N/A Default Value N/A |
| rds_instance_id | Yes | String | Definition RDS instance ID, which uniquely identifies the instance. Constraints N/A Range The value contains 36 characters with a suffix of in01. Only letters and digits are allowed. Default Value N/A |
Example Request
Checking RDS connectivity
POST https://{endpoint}/v3/a8e2a5e2a6xxxxxxxxxx5af5b9ddabe5/instances/b7eabbbc6bxxxxxxxxxxadfffa99a7c2in09/rds/connection
{
"infos" : [ {
"endpoint" : "***.**.***.***:****",
"username" : "root",
"password" : "********",
"rds_instance_id" : "b944d6e9a8xxxxxxxxxx74e257b83c84in01"
} ]
} Response Parameters
- Normal response
| Parameter | Type | Description |
|---|---|---|
| rds_check_infos | Array of CheckRdsConnectionResqVO objects | Definition A collection of information related to the RDS connectivity test. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| rds_instance_id | String | Definition RDS instance ID, which uniquely identifies the instance. Range The value contains 36 characters with a suffix of in09. Only letters and digits are allowed. |
| success | String | Definition Whether the connection is successful. Range |
| error_code | String | Definition Error code of the connectivity check failure. Range N/A |
| error_message | String | Definition Cause of the connectivity check failure. Range N/A |
Example Response
- Normal response example
{ "rds_check_infos" : [ { "rds_instance_id" : "b3110ddff4xxxxxxxxxx7f2b752cd2a70in01", "success" : "true", "error_code" : null, "error_message" : null } ] }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, 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