Memberikan izin pada tabel database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:GrantTablePermission |
update |
*Instans.
|
None | None |
Sintaks permintaan
POST /api/v1/instances/{instanceId}/grantTablePermission HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID instans. |
hgpostcn-cn-zpr3426xxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| databaseName |
string |
No |
Nama database. |
my_db |
| privileges |
array |
No |
Daftar izin. |
|
|
string |
No |
Daftar izin. Untuk informasi selengkapnya, lihat model izin Gudang Data Real-time. |
INSERT |
|
| userName |
string |
No |
ID pengguna. Untuk informasi selengkapnya, lihat ikhtisar akun Gudang Data Real-time. |
p4_1234xxxx |
| schemaName |
string |
No |
Nama skema. |
my_schema |
| tableName |
string |
No |
Nama tabel. |
orders_pay |
| allTable |
boolean |
No |
Apakah akan memberikan izin pada semua tabel yang ada. |
true |
| columnNames |
array |
No |
Daftar nama kolom. |
|
|
string |
No |
Nama kolom. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A |
| Success |
string |
Hasil permintaan, yang menunjukkan apakah permintaan mengalami pengecualian. Hal ini tidak terkait dengan logika bisnis. |
true |
| ErrorCode |
string |
Kode kesalahan. |
null |
| ErrorMessage |
string |
Paket kesalahan. |
null |
| HttpStatusCode |
string |
Kode status HTTP. |
200 |
| Data |
boolean |
Apakah operasi berhasil. Nilai valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A\n",
"Success": "true",
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200",
"Data": true
}
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.