Queries details of a specific database.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant operation to query the ID of the tenant. | -1 |
Host | string | Yes | The endpoint that is used to connect to the database. | 192.168.XX.XX |
Port | integer | Yes | The port that is used to connect to the database. | 3306 |
Sid | string | No | The system identifier (SID) of the database. Note
The SID uniquely identifies an Oracle database. After a database is created, a SID is generated for the database.
| test_sid |
SchemaName | string | Yes | The name of the database. | mysql |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "3CDB8601-AD74-4A47-8114-08E08CD6****",
"Database": {
"DatabaseId": "984****",
"Host": "192.168.XX.XX",
"CatalogName": "def",
"DbaName": "dba_name",
"State": "NORMAL",
"DbaId": "27****",
"SchemaName": "mysql",
"InstanceId": "149****",
"Port": 3306,
"EnvType": "product",
"Sid": "test_sid",
"OwnerIdList": {
"OwnerIds": [
"27****"
]
},
"Encoding": "utf8mb4",
"DbType": "mysql",
"OwnerNameList": {
"OwnerNames": [
"test"
]
},
"SearchName": "mysql@192.168.XX.XX:3306",
"InstanceAlias": "test"
},
"ErrorCode": "UnknownError",
"ErrorMessage": "An unknown error occurred.",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-05-18 | The response structure of the API has changed | View Change Details |