Mengkueri informasi kolom dari sebuah tabel.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListTableColumns |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant atau ListUserTenants untuk mendapatkan nilai parameter ini. |
3*** |
| DbId |
integer |
Yes |
ID database fisik. Anda dapat memanggil operasi ListDatabases atau SearchDatabase untuk mendapatkan nilai parameter ini. |
123 |
| TableName |
string |
Yes |
Nama tabel. Catatan
Anda dapat memanggil operasi ListTables untuk mendapatkan nilai parameter ini. |
100g_customer |
| TableSchemaName |
string |
No |
Nama skema tabel. Parameter ini harus dilewatkan sebagai nama skema hanya ketika database adalah SQL Server. |
dbo |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan ketika permintaan gagal. |
UnknownError |
| ColumnList |
object |
||
| Column |
array<object> |
Daftar informasi kolom. |
|
|
object |
|||
| ColumnId |
string |
The ID of the field. |
12345 |
| ColumnType |
string |
The data type of the field. |
varchar |
| Description |
string |
The description of the field. |
column desc |
| AutoIncrement |
boolean |
Indicates whether the field is an auto-increment field. Valid values:
|
false |
| FunctionType |
string |
The type of the masking algorithm that is used for the field. Valid values:
|
NULL |
| DataPrecision |
integer |
The number of valid digits for the column. |
0 |
| DefaultValue |
string |
The default value of the column. |
aaa |
| ColumnName |
string |
The field name. |
c1 |
| SecurityLevel |
string |
The security level of the field. Valid values:
|
INNER |
| DataScale |
integer |
The number of decimal places of the field data. |
0 |
| DataLength |
integer |
The length of the field. |
32 |
| Sensitive |
boolean |
Indicates whether the field is a sensitive column. Valid values:
|
false |
| Nullable |
boolean |
Indicates whether the field can be empty. Valid values:
|
true |
| ErrorMessage |
string |
Pesan kesalahan yang dikembalikan ketika pemanggilan gagal. |
UnknownError |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ColumnList": {
"Column": [
{
"ColumnId": "12345",
"ColumnType": "varchar",
"Description": "column desc",
"AutoIncrement": false,
"FunctionType": "NULL",
"DataPrecision": 0,
"DefaultValue": "aaa",
"ColumnName": "c1",
"SecurityLevel": "INNER",
"DataScale": 0,
"DataLength": 32,
"Sensitive": false,
"Nullable": true
}
]
},
"ErrorMessage": "UnknownError",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.