Usage of nzcli
with OIDC authentication
After successful authentication from Netezza UI and Identity Provider, you will get a JWT token in the Administration -> tools tab. You can use the JWT token to execute nzcli
commands as follows:
./nzcli nzcommand -u username -pw jwttoken -apiserver ip
./nzcli nzcommand -u OIDCUSER -pw XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -apiserver X.X.X.X
This JWT token is valid for 15 minutes.