Skip to main content

GetInstanceName

This Script is part of the Developer Tools Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Given an integration name, returns the instance name.

Script Data#


NameDescription
Script Typepython3
Tagsbasescript
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
integration_nameIntegration name for which to check its instance name.
return_all_instancesWhether to return a full list of instance names related to the given integation name.

Outputs#


PathDescriptionType
Instances.integrationNameRequested integration name.String
Instances.instanceNameInstance name for given integration.String

Script Example#

!GetInstanceName integration_name="HelloWorld Feed"

Context Example#

{
"Instances": {
"instanceName": "HelloWorld Feed_instance_1",
"integrationName": "HelloWorld Feed"
}
}

Human Readable Output#

Results#

instanceNameintegrationName
HelloWorld Feed_instance_1HelloWorld Feed