Hi,
I am having issues trying to set up the gaia api in one of my gateways running r80.40 take 120.
If I just run in the local gaia:
mgmt_cli login user me password secret --context gaia_api
or
mgmt_cli show hostname --context gaia_api
I get the following error:
Couldn't connect to server
If you need to use a proxy server, add the '--proxy' parameter
As far as I understand there is not limitation by ip.
add allowed-client host any-host
The api is up and I am testing with the admin user. I have even granted permission for the admin user but it seems like the admin user has not rights for api access
gaia_api access -u admin -e true
show rba user admin
User
admin
access-mechanism Web-UI
access-mechanism CLI
role adminRole
If I run it through web services I get the folling error:
{
"code": "generic_err_command_not_found",
"errors": "Requested API command: [login] not found",
"message": "Command Not Found"
}
gaia_api status
API Status:
---------------------
Build: cp991255022
Uptime: 0:00:01.940264
Current Sessions: 0
Latest Version: 1.5
Processes:
Name State PID
---------------------------------
GAIA_API Started 30762
GAIA_API_DOCS Started 30761
APACHE Started 13593
CONFD Started 12535
CLISHD Started 12615
CELERY Started 30759
REDIS Started 30760
Port Details:
-------------------
APACHE Gaia Port: 443
--------------------------------------------
Overall API Status: Started
--------------------------------------------
Am I missing anything?