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

show-administartor API call on non MDS system

hello,

I have question related to show-administartor/s API call, trying to get list of admins on non MDS mgmt and getting:

{'code': 'err_inappropriate_domain_type',
'message': 'This command can work only on domains of type MDS. Cannot execute '
'it in the current domain (current domain type is Domain).'}

 

according to API ref, this command is:

Description

Retrieve all administrators.

This command is available only after logging in to the System Data domain.
 
from cli:

> show administrator name "test" --version 1.5 --domain 'System Data' --format json

{
"code" : "err_inappropriate_domain_type",
"message" : "This command can work only on domains of type MDS. Cannot execute it in the current domain (current domain type is Domain)."
}

 

is there a way how can I get this working on non MDS system? have not found a way 😛 

 

thx

0 Kudos
1 Solution

Accepted Solutions
Martin_Valenta
Advisor
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-administrators~v1.1%20

mgmt_cli show administrators limit 50 offset 0 details-level "standard" --version 1.1 --domain 'System Data' --format json
• "--format json" is optional. By default the output is presented in plain text.
• "--domain 'System Data'" is required to login to System Data domain.
• This command is available only after logging in to the System Data domain.

View solution in original post

3 Replies
Martin_Valenta
Advisor
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-administrators~v1.1%20

mgmt_cli show administrators limit 50 offset 0 details-level "standard" --version 1.1 --domain 'System Data' --format json
• "--format json" is optional. By default the output is presented in plain text.
• "--domain 'System Data'" is required to login to System Data domain.
• This command is available only after logging in to the System Data domain.
PhoneBoy
Admin
Admin
And that's the important part of this: when you create the session, it must be against the System Domain.
Yes, this applies even in non-MDS.
0 Kudos
Ivo_Hrbacek
Contributor
Contributor

'domain': 'System Data' thats it, thx 😛 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events