Log in to the NetView REST Server authentication service and obtain a token. When you log in to the NetView REST Server authentication service without any option, the token will be stored in your default NetView profile until it expires.
Usage
zowe znetview-base auth login [options]
Options
NetView Connection Options
-
--host
| -H
(string)
- The host name of your NetView REST Server.
-
--port
| -P
(number)
- The port number of your NetView REST Server.
-
--user
| -u
(string)
- The user name to authenticate to your NetView REST Server.
-
--password
| --pw
(string)
- The password to authenticate to your NetView REST Server.
-
--token-type
| --tt
(string)
- The type of the token to authenticate to your NetView REST Server. The only token type that is valid when using NetView REST Server authentication is JSESSIONID.
-
--token-value
| --tv
(string)
- The value of the token to authenticate to your NetView REST Server.
-
--base-path
| --bp
(string)
-
The base path for your Zowe API Mediation Layer instance. Specify this option to prepend the base path to NetView REST service when making REST requests to the Zowe API Mediation Layer.
Note: Do not specify this option if you are not using the Zowe API Mediation Layer.
Profile Options
Base Connection Options
-
--reject-unauthorized
| --ru
(boolean)
-
--cert-file
(local file path)
- The file path to a certificate file to use for authentication
-
--cert-key-file
(local file path)
- The file path to a certificate key file to use for authentication
Examples
-
Log in to the NetView REST Server. The authentication token will be stored in your default NetView profile.:
zowe znetview-base auth login
-
Log in to the NetView REST Server. The authentication token will not be stored in your default NetView profile:
zowe znetview-base auth login --show-token