Create a dynamic resource from template
Requires (min.): SA Operations API 1.0.0
Following Success Message can be returned by this command:
SACLI002100 - Dynamic resource {ResourceName} has been created from template {TemplateName}
Usage
zowe system-automation create resource [options]
Options
-
--template
(string)
- The name of template to be used for creation of the resource
-
--id
(string)
- The ID of the template to be used for creation of the resource
-
--name
(string)
- This is subsystem name of the new resource. It will normally be taken as the resource name as it is shown for example in the list resources command
-
--job
(string)
-
--system
(string)
- The system where to create the resource
-
--subsystem
(string)
- The subsystem name of the resource to be created
-
--sdesc
(string)
- Specifies the short descrcription for the resource to be created
-
--group
(string)
- This is the name of the resource group (APG) that will host the new resource as group member
-
--procedure
(string)
- Specifies the procedure name of the new resource
-
--comment
(string)
- This comment will be associated to this creation request
-
--path
(string)
- Specified the USS path and command to start the application represented by this resource
-
--filter
(string)
- This filter is used to monitor the USS process represented by this resource
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
-
Create a resource with (subsys)name <SUBS_NAME> from template with name <TEMPLATE_NAME> on system <SYS_NAME>:
zowe system-automation create resource --template=TEMPLATE_NAME --name=SUBS_NAME --system=SYS_NAME
-
Create a resource with (subsys)name <SUBS_NAME> from template with ID <TEMPLATE_ID> on system <SYS_NAME>:
zowe system-automation create resource --id=TEMPLATE_ID --name=SUBS_NAME --system=SYS_NAME