The following steps outline the deployment scenario:
CLI method:
% set system admin {YOUR_SYSTEM_NAME} rest state enabled % set oam localAuth user admin m2mAccess enabled % commit
EMA method:
Navigate to the path Navigator > User Management > Admin user.
Select “Allow Machine to Machine Access (REST)” option.
Select "Allow Interactive Access ( CLI and EMA) option.
Click Save to save the configuration.
Verify REST API support using the REST API command:
curl -kisu admin:xxxx https://{SBX-MGMT-IP}/api/config/addressContext/
You can alter the steps above to enable the REST API support for any CLI / WebUI user.