提取模块

TIPCommon.extraction.extract_action_param

TIPCommon.extraction.extract_action_param(siemplify, param_name, default_value=None, input_type=<class 'str'>, is_mandatory=False, print_value=False, remove_whitespaces=True)

从 Siemplify 对象中提取操作参数。

参数
siemplify Siemplify

Siemplify 对象。

param_name str

要提取的参数的名称。

default_value 可选。

Any

如果未找到相应参数,则返回的默认值。

input_type 可选。

type

参数的类型。

is_mandatory 可选。

bool

定义参数是否为必需参数。

print_value 可选。

bool

定义是否打印形参的值。

remove_whitespaces 可选。

bool

定义是否从参数值中移除空格。

返回值

参数值。

返回类型

不限。

TIPCommon.extraction.extract_configuration_param

TIPCommon.extraction.extract_configuration_param(siemplify, provider_name, param_name, default_value=None, input_type=<class 'str'>, is_mandatory=False, print_value=False, remove_whitespaces=True)

从集成配置中提取配置参数值。

参数
siemplify Siemplify 对象。
provider_name 集成标识符。
param_name 参数的名称。
default_value 当配置中没有值时要设置的默认值。
input_type 输入类型。
is_mandatory 定义参数是否为必需参数。
print_value 定义是否打印值。
remove_whitespaces 定义是否从值中移除空格。

返回值

提取的值。

TIPCommon.extraction.extract_connector_param

TIPCommon.extraction.extract_connector_param(siemplify, param_name, default_value=None, input_type=<class 'str'>, is_mandatory=False, print_value=False, remove_whitespaces=True)

从 Siemplify 对象中提取连接器参数。

参数
siemplify Siemplify

Siemplify 对象。

param_name str

要提取的参数的名称。

default_value 可选。

Any

如果未找到相应参数,则返回的默认值。

input_type 可选。

type

参数的类型。

is_mandatory 可选。

bool

定义参数是否为必需参数。

print_value 可选。

bool

定义是否打印形参的值。

remove_whitespaces 可选。

bool

定义是否从参数值中移除空格。

返回值

参数值。

返回类型

不限。

TIPCommon.extraction.extract_job_param

TIPCommon.extraction.extract_job_param(siemplify, param_name, default_value=None, input_type=<class 'str'>, is_mandatory=False, print_value=False, remove_whitespaces=True)

从 Siemplify 对象中提取连接器参数。

参数
siemplify SiemplifyJob

SiemplifyJob 对象。

param_name str

要提取的参数的名称。

default_value 可选。

Any

如果未找到相应参数,则返回的默认值。

input_type 可选。

type

参数的类型。

is_mandatory 可选。

bool

定义参数是否为必需参数。

print_value 可选。

bool

定义是否打印形参值。

remove_whitespaces 可选。

bool

定义是否从参数值中移除空格。

返回值

参数值。

返回类型

不限。

TIPCommon.extraction.extract_script_param

TIPCommon.extraction.extract_script_param(siemplify, input_dictionary, param_name, default_value=None, input_type=<class 'str'>, is_mandatory=False, print_value=False, remove_whitespaces=True)

从输入字典中提取脚本参数。

参数
siemplify Siemplify 对象。
input_dictionary 输入字典。
param_name 要提取的参数的名称。
default_value 如果未找到相应参数,则返回的默认值。
input_type 参数的类型。
is_mandatory 定义参数是否为必需参数。
print_value 定义是否打印参数的值。
remove_whitespaces 定义是否从参数值中移除空格。

返回值

提取的值。

TIPCommon.extraction.get_connector_detailed_params

TIPCommon.extraction.get_connector_detailed_params(siemplify)

获取连接器的详细参数。

参数
siemplify Siemplify

Siemplify 对象。

返回值

ConnectorParameter 对象的列表。

返回类型

list

需要更多帮助?从社区成员和 Google SecOps 专业人士那里获得解答。