Saltar a contenido

Users and access

Console users with their profile assignments and two-factor settings, ACL profiles, API tokens and console sessions, and the audit trail.

Generated automatically from pandora-cli docs (version 0.9.0, branch develop, commit 4f61789e07). Do not edit by hand; run make cli-ref.

Entities

Entity Aliases Commands Summary
user users 16 Console users and their profile assignments
profile profiles 5 ACL profiles
token tokens 8 API tokens
audit-log audit 2 Console audit log

user

Console users and their profile assignments

Aliases: users

Command Method Path
user list POST /user/list
user get <idUser> GET /user/{idUser}
user create POST /user
user update <idUser> PUT /user/{idUser}
user delete <idUser> DELETE /user/{idUser}
user profile list <idUser> POST /user/{idUser}/profiles
user profile get <idUser> <idUserProfile> GET /user/{idUser}/profiles/{idUserProfile}
user profile add <idUser> <idProfile> POST /user/{idUser}/profile/{idProfile}
user profile remove <idUser> <idUserProfile> DELETE /user/{idUser}/profiles/{idUserProfile}
user login-info <idUser> GET /user/{idUser}/login
user notify <idUser> POST /user/{idUser}/notify
user 2fa status <idUser> GET /user/{idUser}/2fa
user 2fa disable <idUser> POST /user/{idUser}/2fa/disable
user 2fa reset <idUser> POST /user/{idUser}/2fa/reset
user 2fa bulk-disable POST /user/2fa/bulk/disable
user 2fa disable-all POST /user/2fa/disable/all

Fields for --where, --fields and --in: comments, disabled, email, firstName, forceChangePass, fullName, idSkin, idUser, isAdmin, language, lastConnect, lastName, localUser, loginBlocked, middleName, notLogin, phone, registered, strictAcl, timezone

--filter additionally accepts every other field of the entity (62 in total).

user profile list — A list operation that is NOT named /list. The API requires a filter body, so an empty one is sent when no --set/--from-file is given.

user profile add — The group the profile applies to travels in the body (--set idGroup=N), not in the path.

user profile remove — idUserProfile is the id of the assignment row, the idUserProfile field shown by user profile list — not idProfile.

user login-info — An action, not a CRUD verb.

user notify — The body fields are subject, body and contentType (optional); the user comes from the path.

user 2fa disable — The body is optional; reason is stored in the audit log.

user 2fa reset — The new TOTP secret is returned only in this response. The body is optional; reason is stored in the audit log.

user 2fa bulk-disable — The body is a JSON array of user ids, for example ["jdoe","asmith"].

user 2fa disable-all — Affects every user of the console.

profile

ACL profiles

Aliases: profiles

Command Method Path
profile list POST /profile/list
profile get <idProfile> GET /profile/{idProfile}
profile create POST /profile
profile update <idProfile> PUT /profile/{idProfile}
profile delete <idProfile> DELETE /profile/{idProfile}

Fields for --where, --fields and --in: idProfile, isAgentDisable, isAgentEdit, isAgentView, isAlertEdit, isAlertManagement, isDbManagement, isEventEdit, isEventManagement, isEventView, isMapEdit, isMapManagement, isMapView, isNetworkConfigEdit, isNetworkConfigManagement, isNetworkConfigView, isPandoraManagement, isReportEdit, isReportManagement, isReportView, isUserManagement, isVconsoleEdit, isVconsoleManagement, isVconsoleView, name

--filter additionally accepts every other field of the entity (30 in total).

token

API tokens

Aliases: tokens

Command Method Path
token list POST /token/list
token get <id> GET /token/{id}
token create POST /token
token update <id> PUT /token/{id}
token delete <id> DELETE /token/{id}
token session login POST /auth/login
token session login-mfa POST /auth/login/mfa
token session logout POST /auth/logout

Fields for --where, --fields and --in: idToken, idUser, isMobile, isPandoraAi, label, lastUsage, sessionExpiresAt, sessionId, tokenType, validity

--filter additionally accepts every other field of the entity (17 in total).

token session login — Public endpoint. Returns an access token, or status=mfa_required and an mfa_token when the account has two-factor authentication. The refresh token travels in an HttpOnly cookie.

token session logout — Other sessions of the same user stay open.

audit-log

Console audit log

Aliases: audit

Command Method Path
audit-log list POST /audit/log/list
audit-log get <idSession> GET /audit/log/{idSession}

Fields for --where, --fields and --in: action, aiSession, description, idSession, idUser, sourceIp, timestamp

--filter additionally accepts every other field of the entity (15 in total).