Mencari detail database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:SearchDatabase |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant untuk mendapatkan nilai parameter ini. |
3*** |
| SearchKey |
string |
No |
Kata kunci yang digunakan untuk mencari nama database. |
testdb |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan di setiap halaman. |
10 |
| EnvType |
string |
No |
Tipe lingkungan database. Untuk informasi lebih lanjut, lihat Mengubah tipe lingkungan instans. |
test |
| SearchRange |
string |
No |
Cakupan izin. Nilai yang valid:
|
HAS_PERMSSION |
| SearchTarget |
string |
No |
Target pencarian. Nilai yang valid:
|
SINGLE_DB |
| DbType |
string |
No |
Tipe database. Untuk informasi lebih lanjut tentang nilai yang valid, lihat Parameter DbType. |
MYSQL |
| RealLoginUserUid |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total entri yang memenuhi kondisi. |
1 |
| RequestId |
string |
ID permintaan. |
E0D21075-CD3E-4D98-8264-FD8AD04A63B6 |
| SearchDatabaseList |
object |
||
| SearchDatabase |
array<object> |
Daftar detail database yang ditanyakan. |
|
|
array<object> |
Daftar detail database yang ditanyakan. |
||
| DatabaseId |
string |
The ID of the database. |
2528**** |
| Host |
string |
The endpoint of the instance in which the database resides. |
rm-xxxx.mysql.rds.aliyuncs.com |
| DbaId |
string |
The ID of the user who assumes the database administrator (DBA) role. |
10**** |
| SchemaName |
string |
The name of the database. |
test |
| Logic |
boolean |
Indicates whether the database is a logical database. Valid values:
|
false |
| DatalinkName |
string |
The name of the data link for cross-database queries. |
datalink_name |
| Port |
integer |
The port of the instance in which the database resides. |
3306 |
| EnvType |
string |
The environment type of the database. For more information, see Change the environment type of an instance. |
test |
| Sid |
string |
The system ID (SID) of the instance in which the database resides. |
testSid |
| OwnerIdList |
object |
||
| OwnerIds |
array |
The IDs of the owners of the databases. |
|
|
string |
The ID of the owner of the database. |
1 |
|
| Encoding |
string |
The encoding method of the database. |
utf8 |
| DbType |
string |
The type of the database engine. |
mysql |
| OwnerNameList |
object |
||
| OwnerNames |
array |
The nicknames of the database owners. |
|
|
string |
The nickname of the database owner. |
user1 |
|
| SearchName |
string |
The name that is used to search for the database. |
test@xxx.xxx.xxx.xxx:3306 |
| Alias |
string |
The alias of the database. |
test_rds |
| CatalogName |
string |
The name of the catalog to which the database belongs. Catatan
If the type of the database engine is PostgreSQL, the name of the database is displayed. |
dmstest |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| ErrorMessage |
string |
Pesan kesalahan. |
UnknownError |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 1,
"RequestId": "E0D21075-CD3E-4D98-8264-FD8AD04A63B6",
"SearchDatabaseList": {
"SearchDatabase": [
{
"DatabaseId": "2528****",
"Host": "rm-xxxx.mysql.rds.aliyuncs.com",
"DbaId": "10****",
"SchemaName": "test",
"Logic": false,
"DatalinkName": "datalink_name",
"Port": 3306,
"EnvType": "test",
"Sid": "testSid",
"OwnerIdList": {
"OwnerIds": [
"1"
]
},
"Encoding": "utf8",
"DbType": "mysql",
"OwnerNameList": {
"OwnerNames": [
"user1"
]
},
"SearchName": "test@xxx.xxx.xxx.xxx:3306",
"Alias": "test_rds",
"CatalogName": "dmstest"
}
]
},
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.