cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Highlighted
Nickel

show-administartor API call on non MDS system

Jump to solution

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
Highlighted

Re: show-administartor API call on non MDS system

Jump to solution
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
Highlighted

Re: show-administartor API call on non MDS system

Jump to solution
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

Highlighted
Admin
Admin

Re: show-administartor API call on non MDS system

Jump to solution
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
Highlighted
Nickel

Re: show-administartor API call on non MDS system

Jump to solution

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

0 Kudos