zowe › ops › stop › resource
Stop the specified resource. The desired state of the resource willbe set to the appropriate DOWN state and SSM will take actions to start the resource.
Usage
zowe ops stop resource <resourcename> [options]
Positional Arguments
-
resourcename
(string)- The name of the resource.
Options
-
--tablename
|--table
(string)- The name of the table that contains the resource. If not specified, the command will search the SSM tables to find the resource. If the resource exists in multiple tables, the desired state of the resource will be set to the appropriate DOWN state in all the tables where the resource exists.
-
--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 state still do not match, the command will fail with a timeout error.
OPS WEB SERVICES CONNECTION OPTIONS
-
--user
(string)- Your z/OS user name used to authenticate to OPS Web Services
-
--password
|--pass
(string)- Your z/OS password used to authenticate to OPS Web Services
-
--host
(string)- The hostname of the server where OPS Web Services is running.
-
--port
|-p
(number)- The port number for OPS Web Services.
-
--reject-unauthorized
|--ru
(boolean)-
If set to true, the server certificate is verified against the list of supplied CAs. If set to false, certificate verification is not performed.
Default value: true
-
-
--protocol
|--prot
(string)-
The protocol used for connecting to OPS Web Services
Default value: https
Allowed values: http, https
-
-
--subsystem
|--subs
(string)- Specifies the subsystem id of the OPS/MVS instance to which commands will be directed.
Profile Options
-
--ops-profile
|--ops-p
(string)- The name of a (ops) profile to load for this command execution.
-
--base-profile
|--base-p
(string)- The name of a (base) profile to load for this command execution.
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
-
--cert-key-file
(local file path)- The file path to a certificate key file to use for authentication
Examples
-
Stop RESOURCE1 on table MYTABLE on subsystem OPSS.:
zowe ops stop resource RESOURCE1 --tablename MYTABLE --subsystem OPSS
-
Start RESOURCE1 on table MYTABLE on subsystem OPSS and wait for up to 2 minutes for RESOURCE1 to have a current state of DOWN.:
zowe ops stop resource RESOURCE1 --tablename MYTABLE --subsystem OPSS -w 120