Memberikan izin pada skema kepada pengguna yang ditentukan dalam instance Hologres.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:GrantSchemaPermission |
list |
*Instance
|
None | None |
Sintaks permintaan
POST /api/v1/instances/{instanceId}/grantSchemaPermission HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID instance. |
hgpostcn-cn-lbj33559xxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Isi permintaan. |
|
| databaseName |
string |
No |
Nama database. |
db_demo |
| privileges |
array |
No |
Daftar izin. |
|
|
string |
No |
Izin. Untuk informasi selengkapnya, lihat SLPM. |
developer |
|
| userName |
string |
No |
ID pengguna. Untuk informasi selengkapnya, lihat Ikhtisar akun Hologres. |
p4_134xxx |
| schemaName |
string |
No |
Nama skema. |
my_schema |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A |
| Success |
string |
Menunjukkan apakah permintaan berhasil. Parameter ini tidak terkait dengan logika bisnis. |
true |
| ErrorCode |
string |
Kode kesalahan. |
null |
| ErrorMessage |
string |
Pesan kesalahan. |
null |
| HttpStatusCode |
string |
Kode status HTTP. |
200 |
| Data |
boolean |
true: Operasi berhasil. false: Operasi gagal. |
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.