service-instance
get
Retrieve a Cloud Pak for Data service instance.
Syntax
cpd-cli service-instance get <cpd-service-instance-name> \
[--all] \
[--cpdconfig=<cpd-configuration-location>] \
[--exclude-user-count=true|false] \
[--output=json|yaml|text] \
[--output-dir=<output-directory>] \
--profile=<cpd-profile-name> \
[--service-type=<cpd-service-type>] \
[--verbose]
Arguments
Table 1: Command arguments
Argument | Description |
---|---|
<cpd-service-instance-name> |
The Cloud Pak for Data service instance name to retrieve. |
Options
Table 1: Command options
Option | Description |
---|---|
|
Retrieve all Cloud Pak for Data
service instances and save to the specified --output-dir location (when an --output-dir location is
specified).
|
--cpdconfig |
The Cloud Pak for Data
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
If set to true, computation of the
total number of users added to a service instance will be skipped for all instances and omitted from
the output.
|
|
Display command
help.
|
|
Specify an output format. Valid
formats include yaml or json (the default format). The option applies only when a single instance is
specified.
|
|
Specify a directory in which to
write output. The option applies only when the --all option is
specified.
|
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
|
The Cloud Pak for Data service
instance type.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Retrieve details on all service instances of the same service type
(
<cpd-service-type>
. -
cpd-cli service-instance get <cpd-service-type> \ --all \ --service-type=<cpd-service-type> \ --output-dir=<output-directory> \ --profile=${CPD_PROFILE_NAME}