Menghapus Pengguna RAM atau akun STS dari Instans Gudang Data Real-time. Setelah dihapus, pengguna tidak dapat lagi masuk ke instans. Untuk memulihkan akses, panggil operasi CreateUser untuk menambahkan pengguna.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /api/v1/instances/{instanceId}/dropUser HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID Instans Gudang Data Real-time. |
hgprecn-cn-xxxxxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| userName |
string |
No |
The user name. Only RAM users and STS accounts are supported. Prefix the name with "p4_" for a RAM user (for example, p4_234253434) or "v4_" for an STS account (for example, v4_3234134). |
p4_234253434 |
| superUser |
string |
No |
Specifies whether the user is a superuser. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EA8F0084-5831-5907-BB31-BD05D2617844 |
| Success |
string |
Indicates whether the request was successful. A value of "true" indicates success, and "false" indicates failure. |
true |
| ErrorCode |
string |
The error code that is returned if the request fails. |
null |
| ErrorMessage |
string |
The error message that is returned if the request fails. |
null |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| Data |
boolean |
The result of the deletion. A value of true indicates success, and a value of false indicates failure. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EA8F0084-5831-5907-BB31-BD05D2617844",
"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.