Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
luise
Explorer
Jump to solution

Management Api - Settings

Good afternoon.

Could you help us, we need to have access to the console api in admin mode, we enter with admin user in the system, but it does not allow us to do managements in Blades - Management Api.

In the access settings, we need to have access to the All IP address option.

Could you help us to solve this problem.

API.png

0 Kudos
1 Solution

Accepted Solutions
_Val_
Admin
Admin

Are you connected with the "Read-only" checkbox marked? Can you make any other changes?

View solution in original post

0 Kudos
8 Replies
_Val_
Admin
Admin

First, if you are doing tests, set API clients for "All IP Addresses" at the start.

Also, you need to see if API is enabled. Run "api status" command on the CLI and show us the output.

ADMIN NOTE: moved to the appropriate space.

0 Kudos
luise
Explorer

Thanks Val.

The problem we have is that the object is in viewed form, we are only using 1 user, with name admin.

And it does not allow to make changes in the sample window, the buttons are disabled.

Thank you very much, for your help Val.

0 Kudos
Amir_Senn
Employee
Employee

I also suggest that you check the "View Session" tab and check if there are locks on any of the sessions. Looks like this is locked, possibly by other admin/session.

If something is continue blocking you and you have SSH expert mode privileges  you can use:

"mgmt_cli -r true set api-settings accepted-api-calls-from "All IP addresses" ; api restart"
Kind regards, Amir Senn
0 Kudos
luise
Explorer

 

Captura de pantalla 2023-03-06 a las 17.21.28.png

Good afternoon, Amir.

Thank you very much for your help.

We have executed the command you provided, and we get the following response.

Screenshot 2023-03-06 at 17.21.28.png

We are only connected with one user in the console, with admin user.

Could you help us in this regard.

Thank you very much, best regards.

0 Kudos
Amir_Senn
Employee
Employee

Remove the domain flag, it is not needed here.

Kind regards, Amir Senn
_Val_
Admin
Admin

Are you connected with the "Read-only" checkbox marked? Can you make any other changes?

0 Kudos
the_rock
Legend
Legend

Can you run below (it will disconnect all smart console users) and then reconnect and try again?

Andy

mgmt_cli -r true show sessions details-level full -f json | jq -r '.objects[] | select(."user-name" != "WEB_API") | .uid' | while read -r uid; do mgmt_cli -r true disconnect uid $uid; done
0 Kudos
the_rock
Legend
Legend

I see points @_Val_ and @Amir_Senn are making. As Amir said, please make sure there are no locks present. Below is my R81.20 lab, but version should not matter.

 

Andy

 

Screenshot_1.png

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events