environment hardware-specification list

List all hardware specifications.

Syntax

cpd-cli environment hardware-specification list \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
[--cpd-scope=<cpd-config-location>] \
[--jmes-query=<jmespath-query>] \
[--name=<hardware-specification-name>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
--profile=<cpd-configuration-profile-name> \
[--project-id=<cpd-project-id>] \
[--quiet] \
[--raw-output=true|false] \
[--space-id=<space-identifier>] \
[--verbose]

Arguments

The environment hardware-specification list command has no arguments.

Options

Option Description
--context Specify the configuration context 
name.
Status
Optional.
Syntax
--context=<catalog-project-or-space-id>
Default value
Not applicable.
Valid values
A valid configuration context name.
--cpd-config The Cloud Pak for Data
configuration location (for example, $HOME/.cpd-cli/config).
Status
Required.
Syntax
--cpd-config=<cpd-config-location>
Default value
No default.
Valid values
A valid Cloud Pak for Data configuration location.
--cpd-scope The Cloud Pak for Data space, project, or catalog scope (for example, cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135).
Status
Optional.
Syntax
--cpd-scope=<cpd-config-location>
Default value
No default.
Valid values
A valid Cloud Pak for Data space, project, or catalog scope.

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--jmes-query The Lucene query.
Status
Required.
Syntax
--query=<lucene-query>
Default value
No default.
Valid values
A valid lucene query.
--name Specify the hardware specification name.
Status
Optional.
Syntax
--name=<hardware-specification-name>
Default value
No default.
Valid values
A valid hardware specification name.
--output Specify an output format. Valid formats include json, yaml, or text (the default format).
Status
Optional.
Syntax
--output=json|yaml|text
Default value
text
Valid values
json|yaml|text
--output-file Specify a file path where all output is redirected.
Status
Required.
Syntax
--output-file=<output-file-location>
Default value
No default.
Valid values
A valid output file path location.
--profile The profile-name from the Cloud Pak for Data configuration.
Status
Required.
Syntax
--profile=<cpd-configuration-profile-name>
Default value
default
Valid values
Any valid profile name from the Cloud Pak for Data configuration.
--project-id Specify a Cloud Pak for Data project instance.
Status
Required.
Syntax
--project-id=<cpd-project-id>
Default value
No default.
Valid values
A valid project identifier.
--quiet Suppress verbose messages.
Status
Optional.
Syntax
--quiet
Default value
No default.
Valid values
Not applicable.
--raw-output When set to true, single values in
 JSON output mode are not surrounded by quotes.
Status
Optional.
Syntax
--raw-output=true|false
Default value
false
Valid values
false
Single values in JSON output mode are surrounded by quotes.
true
Single values in JSON output mode are not surrounded by quotes.
--space-id Specify a space identifier.
Status
Required.
Syntax
--space-id=<space-identifier>
Default value
No default.
Valid values
A valid space identifier.
--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.

Examples

Note: The following examples use environment variables. Use a script to create environment variables with the correct values for your environment. You can optionally add the listed environment variables to the install variables script. For more information, see Best practice: Setting up install variables.
Specify the environment variables in a script file.
project_id = <The Cloud Pak for Data project instance>
List all the project hardware specifications to help choose one that fits your custom environment.
cpd-cli environment hardware-specification list \
--project-id=${PROJECT_CPD_INSTANCE}
Example output:

...
ID                                     Name            Description                                                                                                                              Type   
5a1f0e64-e420-55ce-bd7a-f6d00bb942cf   ML              A hardware specification providing 4 CPU cores and 32 GiB of memory.                                                                     hardware_specification   
a02f3ab5-6964-4f06-a870-c7cc69187895   V100x2          A hardware specification providing 52 CPU cores and 96 GiB of memory with 2 Nvidia v100 GPUs.                                            hardware_specification   
a6c4923b-b8e4-444c-9f43-8a7ec3020110   L               A hardware specification providing 8 CPU cores and 32 GiB of memory.                                                                     hardware_specification   
ac59d20a-9c7c-4504-a853-788ef35969da   Default Spark   A hardware specification for Spark with 1 CPU and 4 GiB of memory for master and worker nodes, with 2 workers.                           hardware_specification   
b128f957-581d-46d0-95b6-8af5cd5be580   XXS             A hardware specification providing one CPU core and 2 GiB of memory.                                                                     hardware_specification   
b2232f7a-bfad-4822-9bce-6ba1af49217a   M-Spark         A hardware specification for Spark service with 2 CPU and 8 GiB of memory for master and 2 CPU and 8 GiB of memory for worker nodes.     hardware_specification   
b305a34b-acb5-4850-a44a-f1f15e304a20   V100x4          A hardware specification providing 104 CPU cores and 192 GiB of memory with 4 Nvidia v100 GPUs.                                          hardware_specification   
c076e82c-b2a7-4d20-9c0f-1f0c2fdf5a24   M               A hardware specification providing 4 CPU cores and 16 GiB of memory.                                                                     hardware_specification   
c1791762-1333-4dd3-b7bb-228ae287da31   XL-Spark        A hardware specification for Spark service with 3 CPU and 12 GiB of memory for master and 4 CPU and 12 GiB of memory for worker nodes.   hardware_specification   
cf70f086-916d-4684-91a7-264c49c6d425   K80             A hardware specification providing 4 CPU cores and 48 GiB of memory with 1 Nvidia K80 GPU.                                               hardware_specification   
d0aa1ae8-a889-42e2-a099-041b604b9289   XL              A hardware specification providing 16 CPU cores and 64 GiB of memory.                                                                    hardware_specification   
d0f52aa1-4312-40f6-ad84-f16cf5c6da9e   K80x2           A hardware specification providing 8 CPU cores and 96 GiB of memory with 2 Nvidia K80 GPUs.                                              hardware_specification   
d92943ba-9f47-407d-9280-c85281687a1e   S-Spark         A hardware specification for Spark service with 1 CPU and 4 GiB of memory for master and 2 CPU and 4 GiB of memory for worker nodes.     hardware_specification   
e18b1866-e8fa-49c8-9aa5-dfaaed6ffa43   XS-Spark        A hardware specification for Spark with 1 CPU and 4 GiB of memory for master and worker nodes.                                           hardware_specification   
e7ed1d6c-2e89-42d7-aed5-863b972c1d2b   S               A hardware specification providing 2 CPU cores and 8 GiB of memory.                                                                      hardware_specification   
ec104857-0389-4649-af8e-971fc11982d0   K80x4           A hardware specification providing 16 CPU cores and 192 GiB of memory with 4 Nvidia K80 GPUs.                                            hardware_specification   
f132f14a-6c0f-4570-b87c-98ad1e297953   L-Spark         A hardware specification for Spark service with 2 CPU and 8 GiB of memory for master and 4 CPU and 9 GiB of memory for worker nodes.     hardware_specification   
f327bdf7-5634-43d8-b1e3-445afeaf18b9   V100            A hardware specification providing 26 CPU cores and 48 GiB of memory with 1 Nvidia v100 GPU.                                             hardware_specification   
f3ebac7d-0a75-410c-8b48-a931428cc4c5   XS              A hardware specification providing one CPU core and 4 GiB of memory.                                                                     hardware_specification