Suspend a resource.
Requires (min.): SA Operations API 1.0.0
Following Success Message can be created by this command:
SACLI011200 - Requesting suspend of resource {ResourceName} success
Usage
zowe system-automation suspend resource [options]
Options
-
--id
(string)
-
--name
(string)
- The name of the resource. It is possible to use the syntax <NAME>/<TYPE>/<SYSTEM>.
-
--type
(string)
-
The type of the resource
Allowed values: APL, APG, SYS, MTR, GRP, SYG, DMN, REF
-
--system
(string)
- The system of the resource
-
--scope
(string)
-
Whether the SUSPEND affects only the resource or both the resource and its descendants.
Default value: ONLY
Allowed values: ALL, ONLY
-
--comment
(string)
- A comment that can be specified for this request
Profile Options
Base Connection Options
-
--host
| -H
(string)
- Host name of service on the mainframe.
-
--port
| -P
(number)
- Port number of service on the mainframe.
-
--user
| -u
(string)
- User name to authenticate to service on the mainframe.
-
--password
| --pass
| --pw
(string)
- Password to authenticate to service on the mainframe.
-
--reject-unauthorized
| --ru
(boolean)
-
--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
-
Suspend a resource with ID <RESOURCE_ID>. Use the ID that is displayed in "zowe sa list resources --showid":
zowe system-automation suspend resource --id=RESOURCE_ID
-
Suspend resource with name <RESOURCE_NAME>It is possible to use the syntax <NAME>/<TYPE>/<SYSTEM>:
zowe system-automation suspend resource --name=RESOURCE_NAME
-
Suspend a resource identified by ID specifying with scope and a comment.:
zowe system-automation suspend resource --id=RESOURCE_ID --scope=ONLY --comment="This is a suspend comment"