擷取模組
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 | 
      SiemplifySiemplify 物件。  | 
    
param_name | 
      str要擷取的參數名稱。  | 
    
default_value | 
      選用。 
 如果找不到參數,則傳回預設值。  | 
    
input_type | 
      選填。 
 參數類型。  | 
    
is_mandatory | 
      選填。 
 定義參數是否為必要。  | 
    
print_value | 
      選填。 
 定義是否要列印參數值。  | 
    
remove_whitespaces | 
      選填。 
 定義是否要從參數值中移除空白字元。  | 
    
傳回
參數值。
傳回類型
不限。
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 | 
      整合 ID。 | 
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 | 
      SiemplifySiemplify 物件。  | 
    
param_name | 
      str要擷取的參數名稱。  | 
    
default_value | 
      選填。 
 如果找不到參數,則傳回預設值。  | 
    
input_type | 
      選填。 
 參數類型。  | 
    
is_mandatory | 
      選填。 
 定義參數是否為必要。  | 
    
print_value | 
      選填。 
 定義是否要列印參數值。  | 
    
remove_whitespaces | 
      選填。 
 定義是否要從參數值中移除空白字元。  | 
    
傳回
參數值。
傳回類型
不限。
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 | 
      SiemplifyJobSiemplifyJob 物件。  | 
    
param_name | 
      str要擷取的參數名稱。  | 
    
default_value | 
      選填。 
 如果找不到參數,則傳回預設值。  | 
    
input_type | 
      選填。 
 參數類型。  | 
    
is_mandatory | 
      選填。 
 定義參數是否為必要。  | 
    
print_value | 
      選填。 
 定義是否要列印參數值。  | 
    
remove_whitespaces | 
      選填。 
 定義是否要從參數值中移除空白字元。  | 
    
傳回
參數值。
傳回類型
不限。
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 | 
      SiemplifySiemplify 物件。  | 
    
傳回
ConnectorParameter 物件的清單。
傳回類型
list
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。