Querying the RDS Database List
Function
This API is used to query the RDS database list.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/audit/databases/rds
Parameter |
Mandatory |
Parameter Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Parameter |
Mandatory |
Parameter Type |
Description |
---|---|---|---|
db_type |
Yes |
String |
Database Type
|
offset |
No |
String |
Offset. The query starts after the first data record offsets the number of data records. The default value is 0. |
limit |
No |
String |
Number of query records. The default value of this parameter is 100. |
Request Parameter
Parameter |
Mandatory |
Parameter Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. The token can be queried by calling the IAM API. (The token is the value of X-Subject-Token in the response header.) |
Response Parameters
Status code: 200
Parameter |
Parameter Type |
Description |
---|---|---|
databases |
Array of databases objects |
RDS database list |
total_count |
Integer |
Total number |
Parameter |
Parameter Type |
Description |
---|---|---|
id |
String |
ID |
db_name |
String |
Database Name |
status |
String |
DB instance status.
|
port |
String |
Database port |
ip |
String |
Database IP address |
instance_name |
String |
RDS instance name |
type |
String |
Type
|
version |
String |
Edition |
is_supported |
Boolean |
Whether agent-free audit is supported |
enterprise_id |
String |
Enterprise project ID. |
Status code: 400
Parameter |
Parameter Type |
Description |
---|---|---|
error |
Object |
Error message. |
Parameter |
Parameter Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 403
Parameter |
Parameter Type |
Description |
---|---|---|
error |
Object |
Error message. |
Parameter |
Parameter Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 500
Parameter |
Parameter Type |
Description |
---|---|---|
error |
Object |
Error message. |
Parameter |
Parameter Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Example Request
None
Example Response
Status code: 200
Succeeded
{ "databases" : [ { "id" : "5a5c4ca8b10f4b00bc88e03866fe3fd4in01", "db_name" : "rds-cwx1216198", "status" : "ACTIVE", "port" : "3306", "ip" : "192.168.0.159", "instance_name" : "rds-cwx1216198", "type" : "MySQL", "version" : "5.7", "is_supported" : null, "enterprise_id" : "0" }, { "id" : "3f1cfaac552e42f1bb9855993586076cin01", "db_name" : "rds-5c25", "status" : "FROZEN", "port" : "3306", "ip" : "192.168.0.14", "instance_name" : "rds-5c25", "type" : "MySQL", "version" : "5.7", "is_supported" : null, "enterprise_id" : "0" } ], "total_count" : 2 }
Status code: 400
Request Parameter Error
{ "error" : { "error_code" : "DBSS.XXXX", "error_msg" : "XXX" } }
Status code: 500
Internal server error.
{ "error" : { "error_code" : "DBSS.XXXX", "error_msg" : "XXX" } }
Status Code
Status Code |
Description |
---|---|
200 |
Success |
400 |
Incorrect request parameter. |
403 |
Authentication failed. |
500 |
Internal server error. |
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