Call the GetLogicDatabase operation to query the details about a logical database.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetLogicDatabase |
The operation that you want to perform. Value: GetLogicDatabase . |
DbId | String | Yes | 1 |
The ID of the logical database. |
Tid | Long | Yes | 0 |
The ID of the tenant. Note
The tenant ID is
taken from the tenant ID displayed when you move the pointer on your profile picture.
For more information, see
View tenant information
.
|
Response parameters
Parameter | Type | Sample response | Description |
---|---|---|---|
ErrorCode | String | UnknownError |
The error codes. |
ErrorMessage | String | UnknownError |
The error message of the failure. |
LogicDatabase | Struct |
The detailed information of the logical database. |
|
DatabaseId | String | 1 |
The ID of the logical database. |
DbType | String | mysql |
The type of the storage instance of the DRDS database. |
EnvType | String | dev |
The environment type of the database. |
Logic | Boolean | true |
Specifies whether the database is a logical database. The value is fixed to true. |
OwnerIdList | List | 1 |
The IDs of database owners. |
OwnerNameList | List | owner_name |
The nicknames of the database owners. |
SchemaName | String | test_logic_db |
The name of the logical database. |
SearchName | String | test_logic_db[xxx] |
The name of the logical database to search for. |
RequestId | String | 90260530-565C-42B9-A6E8-893481FE6AB6 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample request
http(s)://[Endpoint]/? Action=GetLogicDatabase &DbId=1 &Tid=0 &<common request parameters>
Sample success responses
XML
format
<LogicDatabase> <Logic>true</Logic> <OwnerNameList> <OwnerNames>xxx</OwnerNames> <OwnerNames>xxx</OwnerNames> <OwnerNames>xxx</OwnerNames> </OwnerNameList> <DatabaseId>265</DatabaseId> <SearchName>test_logic_db(xxx)</SearchName> <DbType>mysql</DbType> <OwnerIdList> <OwnerIds>88653</OwnerIds> <OwnerIds>97787</OwnerIds> <OwnerIds>88654</OwnerIds> </OwnerIdList> <EnvType>dev</EnvType> <SchemaName>test_logic_db</SchemaName> </LogicDatabase> <RequestId>90260530-565C-42B9-A6E8-893481FE6AB6</RequestId> <Success>true</Success>
JSON
{ "LogicDatabase": { "Logic": true, "OwnerNameList": { "OwnerNames": [ "xxx", "xxx", "xxx" ] }, "DatabaseId": 265, "SearchName": "test_logic_db(xxx)", "DbType": "mysql", "OwnerIdList": { "OwnerIds": [ 88653, 97787, 88654 ] }, "EnvType": "dev", "SchemaName": "test_logic_db" }, "RequestId": "90260530-565C-42B9-A6E8-893481FE6AB6", "Success": true }
Error codes
For more information about error codes, see error center.