service-instance
create
Create a Cloud Pak for Data
service instance from a JSON request file.
Syntax
cpd-cli service-instance create \
--generate-template-from=<get-command-response-file> \
--from-source=<json-template> \
--profile=<cpd-configuration-profile-name> \
[--verbose]
Arguments
The create
command has no
arguments.
Options
Option | Description |
---|---|
--from-source |
Specify the JSON template file
location and name. The JSON template file is used to create the service instance.
|
--generate-template-from |
Specify a JSON file location and
name. The JSON file is used to generate a JSON template file from which the service instance is
created. The JSON file can store information about different contexts, where each context can refer
to a different environment.
|
--help |
Display command
help.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--verbose |
Logs include more detailed
messages.
|
Examples
- Generate a template for service instance creation
-
cpd-cli service-instance create \ --generate-template-from=./cpd-cli-workspace/service-instance/example_stream.json \ --profile=<cpd-configuration-profile-name>
- Create service instance from JSON template file
-
cpd-cli service-instance create \ --from-source=./cpd-cli-workspace/service-instance/templates/example_stream_create_template.json \ --profile=<cpd-configuration-profile-name>