List all requests currently added to resources matching the specified filter options.
Requires (min.): SA Operations API 1.1.0
Following Success Message can be returned by this command:
SACLI006200 - Listing requests success
Usage
zowe system-automation list requests [options]
Options
-
--status
(string)
-
The status of the request
Allowed values: WINNING, NOWINNING, LOSING, NOLOSING
-
--source
(string)
- The source of the request
-
--userid
(string)
- The user who issued the request
-
--name
(string)
- The name of the resource for that to list requests. Wildcard '*' is allowed. It is possible to use the syntax <NAME>/<TYPE>/<SYSTEM>.
-
--type
(string)
- The type of the resource for that to list requests
-
--requestType
(string)
List Options
-
--showid
(boolean)
-
--showcomment
(boolean)
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
-
List all requests that have been placed on all resources:
zowe system-automation list requests
-
List all requests and show their ID.:
zowe system-automation list requests --showid
-
List all request against resource with name=<RESOURCE_NAME>, type=<RESOURCE_TYPE>, system=<RESOURCE_SYSTEM>.:
zowe system-automation list requests --name=RESOURCE_NAME --type=RESOURCE_TYPE --system=RESOURCE_SYSTEM