- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Read-Only user not working in API
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Read-Only user not working in API
I noticed that Read-Only account does not work with the API. Is this a bug or planned?
I am running MDM r80.10 take 24
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you add a bit more information on what sort of error you're seeing?
I just tested it out on R80.10 HF take 24 and this is what I got:
[Expert@MDS:0]# mgmt_cli login user ReadOnlyAdmin domain Domain1 > id.txt
Password:
[Expert@MDS:0]# cat id.txtsid: "uJEFpZ_ljjZiKHBF1zx71gJD71HrTiZwlKA3NWC42Jk"
url: "https://127.0.0.1:443/web_api"
session-timeout: 600
last-login-was-at:
posix: 1503052289706
iso-8601: "2017-08-18T13:31+0300"
read-only: true
api-server-version: "1.1"[Expert@MDS:0]# mgmt_cli add host name test1 ip-address 1.1.1.1 -s id.txt
code: "generic_error"
message: "Runtime error: Operation is not allowed in read only mode!"[Expert@MDS:0]#
HTH
Yonatan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be supported:
If it's not working, I recommend opening a case with the TAC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you add a bit more information on what sort of error you're seeing?
I just tested it out on R80.10 HF take 24 and this is what I got:
[Expert@MDS:0]# mgmt_cli login user ReadOnlyAdmin domain Domain1 > id.txt
Password:
[Expert@MDS:0]# cat id.txtsid: "uJEFpZ_ljjZiKHBF1zx71gJD71HrTiZwlKA3NWC42Jk"
url: "https://127.0.0.1:443/web_api"
session-timeout: 600
last-login-was-at:
posix: 1503052289706
iso-8601: "2017-08-18T13:31+0300"
read-only: true
api-server-version: "1.1"[Expert@MDS:0]# mgmt_cli add host name test1 ip-address 1.1.1.1 -s id.txt
code: "generic_error"
message: "Runtime error: Operation is not allowed in read only mode!"[Expert@MDS:0]#
HTH
Yonatan
