- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hey everyone,
for a script which I run with a cron job on the management server, I need to connect to a gateway and run a few commands to extract some information. To solve this, I was thinking about using the gaia-api via mgmt_cli but I am having trouble even authenticating to the gateway.
An example of a command and its output:
In this first example I use a user with read only permissions
[Expert@mgmtname:0]# mgmt_cli gaia-api/show-assets target "125435315-34534-3154-4444-444444"
Username: username
Password:
code: "err_gaia_api_login_failed"
message: "Cannot login to the Gateway: "125435315-34534-3154-4444-444444"
In this second example, I use a RADIUS user with full access to the gateway, Mgmt Server and SmartConsole.
[Expert@mgmtname:0]# mgmt_cli gaia-api/show-assets target "125435315-34534-3154-4444-444444"
Username: username
Password:
code: "err_login_failed"
message: "Authentication to server failed."
Do I need a locally managed user with read/write permissions, now that I think of it, it would make sense? I wasn't able to find a lot of documentation on this..
Thank you in advance.
Best regards
You need to allow your user account to use the GAIA API, on the gateway.
https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#api_access~v1.7%20
To grant a user with GAIA API access, use the following command in expert mode:
[Expert@hostname]# gaia_api access --user <user> --enable true
To revoke GAIA API access from a user, use the following command in expert mode:
[Expert@hostname]# gaia_api access --user <user> --enable false
To check whether a user is permitted to use GAIA API, look for 'access-mechanism API' in the output of the following command in CLISH mode:
hostname> show rba user <user>
This thread covers the topic as well: https://community.checkpoint.com/t5/Security-Gateways/API-commands-on-gateways/m-p/220704#M42240
You need to allow your user account to use the GAIA API, on the gateway.
https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#api_access~v1.7%20
To grant a user with GAIA API access, use the following command in expert mode:
[Expert@hostname]# gaia_api access --user <user> --enable true
To revoke GAIA API access from a user, use the following command in expert mode:
[Expert@hostname]# gaia_api access --user <user> --enable false
To check whether a user is permitted to use GAIA API, look for 'access-mechanism API' in the output of the following command in CLISH mode:
hostname> show rba user <user>
This thread covers the topic as well: https://community.checkpoint.com/t5/Security-Gateways/API-commands-on-gateways/m-p/220704#M42240
Amazing thank you!
To add to what Alex said, you can also check this from web UI.
Andy
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY