Hi! I am looking for a way to create an admin using mgmt_cli.
I already found the Management API documentation, but I can't find the commands to publish the changes. For example:
To create an administrator with an api key authentication method:
mgmt_cli add administrator name admin authentication-method api key permissions-profile read only all expiration-date never --domain System Data
To generate an api key for it:
mgmt_cli add api-key admin-name admin --domain System Data --format json
To enable the API service:
mgmt_cli set api-settings accepted-api-calls-from all ip addresses that can be used for gui clients --domain System Data --format json
and after that:
mgmt_cli -r true --domain MDS set api-settings accepted-api-calls-from "All IP addresses"
api restart
api status
Questions:
Is everything right with these commands?
Do I still need to run the publish changes command? If yes, how it looks? I found only show last-published-session and purge-published-sessions.
And do I need to run two commands to enable the API service or just "mgmt_cli -r true ..." is enough?
Thank you in advance!