informatica.infacore.datasource.datasource.DataSource.config

DataSource.config(mode: str = 'BASIC') dict

Returns the connection attribute details required for creating the connection.

Parameters:

mode (str) –

The value to assign to retrieve the corresponding connection attribute details.

You can specify the following values:
  • SIMPLIFIED: Gets only the mandatory fields, with default values wherever applicable.

  • BASIC: Gets only the connection attribute keys.

  • RAW: Gets the details of the connection attributes such as the data type, tool tips, isMandatory and other details.

The default value is BASIC.

Returns:

Connection attribute details as the “key, value” pair.

Return type:

dict

Example

>>> import informatica.infacore as ic
>>> orcl_ds = ic.get_datasource("Oracle")
>>> orcl_config = orcl_ds.config()