All Products
Search
Document Center

Hologres:CreateUser

Last Updated:Jun 10, 2026

Menambahkan Pengguna RAM atau akun STS ke Instans Gudang Data Real-time. Setelah ditambahkan, akun tersebut dapat digunakan untuk masuk ke Instans.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST /api/v1/instances/{instanceId}/createUser HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

No

ID Instans.

hgpostcn-cn-zpr3426vm002

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. The user name must be prefixed with "p4_" for RAM users (e.g., p4_234253434) and "v4_" for STS accounts (e.g., v4_3234134).

p4_2346134

superUser

boolean

No

Specifies whether the user is a superuser.

false

Elemen respons

Element

Type

Description

Example

object

The response.

RequestId

string

The request ID.

D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70

Success

string

Indicates whether the operation succeeded. A value of "true" indicates success, and "false" indicates failure.

true

ErrorCode

string

The error code.

null

ErrorMessage

string

The error message.

null

HttpStatusCode

string

The HTTP status code.

200

Data

boolean

Returns true on success and false on failure.

true

Contoh

Respons sukses

JSONformat

{
  "RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
  "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.