connection datasource-type get

Retrieve the data source type details.

Syntax

cpd-cli connection datasource-type get \
[--accept-language=<user-locale>] \
[--actions=true|false] \
[--connection-properties=true|false] \
[--context=source|target] \
[--cpd-config=<cpd-config-location>] \
--datasource-type=<datasaource-type-id> \
[--discovery=true|false] \
[--entity-environment=<cloud,streams,local>] \
[--entity-product=<string1,string2,...>] \
[--interaction-properties=true|false] \
[--jmes-query=<jmespath-query>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
[--product-selector-scopeglobal|context] \
--profile=<cpd-configuration-profile-name> \
[--quiet] \
[--raw-output=true|false] \
[--verbose]

Arguments

The connection datasource-type get command has no arguments.

Options

Option Description
--accept-language Specify the user's preferred locale identifier.
Status
Optional.
Syntax
--accept-language=<user-locale>
Default value
No default.
Valid values
Any valid language locale identifier (for example 'en' for English).
--actions When the option is set to 'true', supported action information is returned.
Status
Optional.
Syntax
--actions=true|false
Default value
true
Valid values
true
Supported action information is returned.
false
Supported action information is not returned.
--connection-properties When the option is set to 'true',
connection property information is returned.
Status
Optional.
Syntax
--connection-properties=true|false
Default value
true
Valid values
A valid connection path.
--context Specify whether assets are discovered for the purpose of reading (source) or writing (target). 'source' is the default when
 no value is specified.
Status
Optional.
Syntax
--context=source|target
Default value
source
Valid values
source
Assets are discovered for the purpose of reading.
target
Assets are discovered for the purpose of writing.
--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.
--datasource-type Specify the name or ID of the data
source type of which to connect (for example, "cfdcb449-1204-44ba-baa6-9a8a878e6aa7" or
 "db2").
Status
Required.
Syntax
--datasource-type=<datasaource-type-id>
Default value
No default.
Valid values
A valid data source name or ID.
--discovery When the option is set to 'true', discovery capability information is returned.
Status
Optional.
Syntax
--discovery=true|false
Default value
true
Valid values
true
Discovery capability information is returned.
false
Discovery capability information is not returned.
--entity-environment Specify the environment that the
 data source type must support in order to be returned. The available environments are 'cloud',
'streams', and 'local'. Filtering is not applied unless the entity environment is specified. Use a
comma-separated string to specify multiple environments (for example,
--entity-environment=cloud,streams).
Status
Optional.
Syntax
--entity-environment=<cloud,streams,local>
Default value
No default.
Valid values
A comma-separated string of data source types (cloud, streams, and local).
--entity-product Specify the product that the data
source type must support in order to be returned. The available products are 'catalog', 'cpd',
'datastage', 'dv', 'igc', 'mdi', 'ml', and 'studio'. Filtering is not applied unless the entity product is specified. Use a comma-separated string to specify multiple environments (for example,
--entity-product=catalog,studio).
Status
Optional.
Syntax
--entity-product=<string1,string2,...>
Default value
No default.
Valid values
A valid product name.

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--interaction-properties When set to 'true', information about source and target interaction properties is returned.
Status
Optional.
Syntax
--interaction-properties=true|false
Default value
false
Valid values
false
Information about source and target interaction properties is not returned.
true
Information about source and target interaction properties is returned.
--jmes-query The Lucene query.
Status
Required.
Syntax
--query=<lucene-query>
Default value
No default.
Valid values
A valid lucene query.
--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.
--product-selector-scope Specify the scope of UI-only product selector property. The option applies to output under the common_properties key. Generated
UI contains an option to switch between the first of the requested products and the rest. When a single product is specified the option switches between the specified product and the remaining products that are supported by the data source.
Status
Optional.
Syntax
--product-selector-scope=global|context
Default value
global
Valid values
global
Sets the UI-only product selector property to 'global'.
context
Sets the UI-only product selector property to 'context'.
--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.
--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.
--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.

Examples

Retrieve the dashdb data source type.
cpd-cli connection datasource-type get \
--datasource-type=dashdb
Example results.

ID:            cfdcb449-1204-44ba-baa6-9a8a878e6aa7   
Name:          dashdb   
Description:   Db2 Warehouse   
Type:          database   
Tags:          []