Stop the specified resource. The desired state of the resource is set to the appropriate DOWN state and SSM takes action to stop the resource.
Usage
zowe ops stop resource <resourcename> <tablename> [options]
Positional Arguments
-
resourcename
(string)
- The name of the resource.
-
tablename
(string)
- The name of the table that contains the resource.
Options
-
--wait
| -w
(number)
- Wait for the specified number of seconds for the current state of the SSM resource to match the new desired state. If more than the specified number of seconds elapses and the current and desired states still do not match, the command fails with a timeout error.
OPS/MVS Web Services / REST API connection options
-
--user
(string)
- Your z/OS user name that is used to authenticate to OPS/MVS Web Services / REST API.
-
--password
| --pass
(string)
- Your z/OS password that is used to authenticate to OPS/MVS Web Services / REST API.
-
--host
(string)
- The hostname of the server where OPS/MVS Web Services / REST API is running.
-
--port
| -p
(number)
- The port number for OPS/MVS Web Services / REST API.
-
--reject-unauthorized
| --ru
(boolean)
-
--protocol
| --prot
(string)
-
The protocol that is used for connecting to OPS/MVS Web Services / REST API.
Default value: https
Allowed values: http, https
-
--subsystem
| --subs
(string)
-
--rest-api
| --ra
(boolean)
-
--base-path
| --bp
(string)
- NOTE: This can only be used with the REST API server. The base path for your Zowe API Mediation Layer instance. Specify this option to prepend the base path to all resources when making REST requests. Only specify this option if you are using an Zowe API Mediation Layer.
Profile Options
Base Connection Options
-
--token-type
| --tt
(string)
- The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.
-
--token-value
| --tv
(string)
- The value of the token to pass to the API.
-
--cert-file
(local file path)
-
The file path to a certificate file to use for authentication.
Note: The CLI does not support certificate files that require a password. For more information, search Troubleshooting PEM Certificates in Zowe Docs.
-
--cert-key-file
(local file path)
- The file path to a certificate key file to use for authentication
Examples
-
Stop the resource "RESOURCE1" in the table "MYTABLE" for the "OPSS" subsystem.:
zowe ops stop resource "RESOURCE1" "MYTABLE" --subsystem "OPSS"
-
Stop the "RESOURCE1" in the table "MYTABLE" for the "OPSS" subsystem, and wait for up to 2 minutes for "RESOURCE1" to have a current state of DOWN.:
zowe ops stop resource "RESOURCE1" "MYTABLE" --subsystem "OPSS" -w 120