Mengambil detail tabel dalam database dengan memanggil ListTables.
Deskripsi operasi
Hanya instans database yang mode kontrolnya adalah Kolaborasi Keamanan yang dapat memanggil operasi API ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListTables |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant atau ListUserTenants untuk mendapatkan parameter ini. |
3*** |
| DatabaseId |
string |
Yes |
ID database fisik. Anda dapat memanggil operasi ListDatabases atau SearchDatabase untuk mendapatkan parameter ini. |
1860**** |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
| SearchName |
string |
No |
Kata kunci pencarian untuk nama tabel. Pencocokan kabur didukung. |
test |
| ReturnGuid |
boolean |
No |
Apakah akan mengembalikan ID Unik Global (GUID) tabel. Nilai valid:
|
true |
| RealLoginUserUid |
string |
No |
Pemanggil operasi API. |
1234 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total tabel yang memenuhi kondisi. |
1 |
| RequestId |
string |
ID permintaan. |
B16FB618-5E96-4FFD-BB0D-490C890A4030 |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| TableList |
object |
||
| Table |
array<object> |
Daftar detail tabel. |
|
|
array<object> |
|||
| DatabaseId |
string |
The ID of the physical database. |
1860**** |
| TableName |
string |
The name of the table. |
consumption_records |
| StoreCapacity |
integer |
The storage space occupied by the table. Unit: MB. This is a statistical value and not an accurate value. |
1024 |
| OwnerIdList |
object |
The IDs of the table owners. |
|
| OwnerIds |
array |
The user IDs of the table owners. |
|
|
string |
The user ID of a table owner. |
51**** |
|
| Description |
string |
The description of the table. |
test |
| Encoding |
string |
The character set of the table. |
utf8 |
| OwnerNameList |
object |
The nicknames of the table owners. |
|
| OwnerNames |
array |
A list of the table owner nicknames. |
|
|
string |
The nickname of a table owner. |
owner_name |
|
| TableSchemaName |
string |
The name of the database to which the table belongs. |
qntest |
| TableType |
string |
The type of the table. Default value: NORMAL. |
NORMAL |
| TableGuid |
string |
The globally unique identifier (GUID) of the table in Data Management (DMS). |
IDB_44743****.qntest.consumption_records |
| Engine |
string |
The storage engine of the table. |
InnoDB |
| NumRows |
integer |
The number of rows in the table. This is a statistical value and not an accurate value. |
10085 |
| TableId |
string |
The ID of the table. |
44743**** |
| ErrorMessage |
string |
Paket kesalahan. |
UnknownError |
| Success |
boolean |
Apakah permintaan berhasil. Nilai valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 1,
"RequestId": "B16FB618-5E96-4FFD-BB0D-490C890A4030",
"ErrorCode": "UnknownError",
"TableList": {
"Table": [
{
"DatabaseId": "1860****",
"TableName": "consumption_records",
"StoreCapacity": 1024,
"OwnerIdList": {
"OwnerIds": [
"51****"
]
},
"Description": "test",
"Encoding": "utf8",
"OwnerNameList": {
"OwnerNames": [
"owner_name"
]
},
"TableSchemaName": "qntest",
"TableType": "NORMAL",
"TableGuid": "IDB_44743****.qntest.consumption_records",
"Engine": "InnoDB",
"NumRows": 10085,
"TableId": "44743****"
}
]
},
"ErrorMessage": "UnknownError",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.