This function retrieves the stored credentials for the current running integration to be used in the Job. The provider parameter is mandatory and is case sensitive.

get_configuration(provider, environment)

Parameters

Param Name Param Type Possible Values Comments Mandatory Parameter
provider string Any one of the integration names from the marketplace Integration Provider name is case sensitive. An error will be thrown if the integration is not installed or the string does not exist Yes
environment string Environment name from the settings Optional If provided, the credentials will be taken from the relevant environment’s configuration. If no environment is stated, the case’s environment is used by default. If there is no configuration for that specific environment, the default configuration will be returned No

Return Type

Dictionary

Example

Sample Code
from SiemplifyJob import SiemplifyJob
siemplify = SiemplifyJob()
siemplify.get_configuration(provider="VirusTotal", environment="")
Result Behavior
Dictionary with saved credentials for the integration from the marketplace will be returned.
Result Value
{
u'AgentIdentifier': None, 
u'Api Key': u'c0c412#########################4f85b22e707', 
u'Verify SSL': u'True', 
u'RunRemotely': u'False'
}