Log out of the NetView REST Server. The authentication token is revoked and removed from the default NetView profile, if the token was stored there.
Usage
zowe znetview-base auth logout [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 out of the NetView REST Server to revoke the authentication token that is in use and remove it from your default NetView profile:
zowe znetview-base auth logout
-
Log out of NetView REST Server to revoke the token that is specified in the --token-value option, in case you logged in to the NetView REST Server with the --show-token option:
zowe znetview-base auth logout --token-value xxxxxxxxxxxxxxxxxxxx