Mengkueri database dalam Instans Gudang Data Real-time.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ListDatabases |
list |
*All Resource
|
None | None |
Sintaks permintaan
GET /api/v1/instances/{instanceId}/listDatabases HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID Instans. |
hgpostcn-cn-jfj3zckut008 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| external |
boolean |
No |
Apakah akan hanya menampilkan daftar tabel eksternal saja. Nilai valid:
Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
0C4935F5-6217-569A-902F-931B2F3E28BA |
| DatabaseList |
array<object> |
The list of databases. |
|
|
object |
The list of databases. |
||
| Name |
string |
The database name. |
my_db |
| PermissionModel |
string |
The permission model. For more information, see Hologres permission models. |
SPM |
| Privilege |
string |
The permission. |
developer |
| External |
boolean |
Indicates whether the table is a foreign table. `true`: The table is a foreign table. `false`: The table is not a foreign table. |
false |
| Success |
string |
Indicates whether the request was successful. |
true |
| ErrorCode |
string |
The error code. |
null |
| ErrorMessage |
string |
The error message. |
null |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0C4935F5-6217-569A-902F-931B2F3E28BA",
"DatabaseList": [
{
"Name": "my_db",
"PermissionModel": "SPM",
"Privilege": "developer",
"External": false
}
],
"Success": "true",
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | NoPermission | RAM user permission is insufficient, please grant AliyunHologresReadOnlyAccess permission. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.