GetInstanceName

Given an integration name, returns the instance name.

python · Developer Tools

Details

IDGetInstanceName
Languagepython
From Version6.0.0
Docker Imagedemisto/python3:3.12.8.3296088
Tagsbasescript

README

Given an integration name, returns the instance name.

Script Data


Name Description
Script Type python3
Tags basescript
Cortex XSOAR Version 6.0.0

Inputs


Argument Name Description
integration_name Integration name for which to check its instance name.
return_all_instances Whether to return a full list of instance names related to the given integation name.

Outputs


Path Description Type
Instances.integrationName Requested integration name. String
Instances.instanceName Instance 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

instanceName integrationName
HelloWorld Feed_instance_1 HelloWorld Feed
args:
- description: Integration name for which to check its instance name.
  name: integration_name
  required: true
- auto: PREDEFINED
  description: Whether to return a full list of instance names related to the given integation name.
  name: return_all_instances
  predefined:
  - 'false'
  - 'true'
comment: Given an integration name, returns the instance name.
commonfields:
  id: GetInstanceName
  version: -1
name: GetInstanceName
outputs:
- contextPath: Instances.integrationName
  description: Requested integration name.
  type: String
- contextPath: Instances.instanceName
  description: Instance name for given integration.
  type: String
script: '-'
tags:
- basescript
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.8.3296088
fromversion: 6.0.0
tests:
- No test