You plan to automate creating new objects using new R80 Management API. You decide to use GAIA CLI for this task.
What is the first step to run management API commands on GAIA's shell?
You plan to automate creating new objects using new R80 Management API. You decide to use GAIA CLI for this task.
What is the first step to run management API commands on GAIA's shell?
To run management API commands on GAIA's shell, the first step is to use the 'mgmt_login' command. This is because it allows you to authenticate and gain access to the required management environment needed to execute API commands. The 'mgmt_login' command is specific to the GAIA CLI and is designed for initiating management sessions.
Answer is B! It mentioned via GAIA's cli not on mgmt_cli tool. In Gaia's shell, type mgmt login or mgmt login user myname Ref: https://sc1.checkpoint.com/documents/latest/APIs/#introduction~v1.8%20
A is correct but with a typo. The correct way to do this is without the underscore (_) mgmt login
for mgmt_cli tool: mgmt_cli login for Gaia cli: mgmt login for Web services: POST https://<mgmt-server>:<port>/web_api/login https://sc1.checkpoint.com/documents/latest/APIs/#cli/login~v1.6.1%20
wrong, answer is D CCSE: The mgmt_cli tool can be run on any Linux or Windows machine. A Linux version of the command line tool is included in all R80.10 Gaia installations. The executable mgmt_cli is included in the R80.10 SmartConsole installation. The mgmt_cli.exe does not require a GUI installation. It can be copied to run on most Windows-based computers. The following API script example uses the mgmt_cli tool to log in and create a new host: mgmt_cli login user “AdminUser1” password “teabag” > id.txt mgmt_cli add host name “New_Host_1” ip-address “1.1.1.1 -s id.txt mgmt_cli publish -s id.txt mgmt_cli logout -s id.txt
This will only apply in a script where you store the session id for the succeeding commands. However on clish, you will need to start with "mgmt login" first.
it should be D https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/login~v1.9%20
Had this question today in exam. selected B
B is correct
Correct Answer B
D is correct