Integrations/Panorama/Panorama.py
def panorama_show_device_version_command():
    """
    Get device details and show message in war room
    """
    target = str(demisto.args()['target']) if 'target' in demisto.args() else None

    response = panorama_show_device_version(target)

    info_data = {
        'Devicename': response['devicename'],
        'Model': response['model'],
        'Serial': response['serial'],
        'Version': response['sw-version']
    }
    entry_context = {"Panorama.Device.Info(val.Devicename === obj.Devicename)": info_data}
    headers = ['Devicename', 'Model', 'Serial', 'Version']
    human_readable = tableToMarkdown('Device Version:', info_data, headers=headers, removeNull=True)

    demisto.results({
        'Type': entryTypes['note'],
        'ContentsFormat': formats['json'],
        'Contents': response,
        'ReadableContentsFormat': formats['markdown'],
        'HumanReadable': human_readable,
        'EntryContext': entry_context
    })

    Get device details and show message in war room
    
Get device details and show message in war room
Get device details and show message in war room
def panorama_show_device_version_command():
    target = str(demisto.args()['target']) if 'target' in demisto.args() else None
    response = panorama_show_device_version(target)
    info_data = {
        'Devicename': response['devicename'],
        'Model': response['model'],
        'Serial': response['serial'],
        'Version': response['sw-version']
    }
    entry_context = {"Panorama.Device.Info(val.Devicename === obj.Devicename)": info_data}
    headers = ['Devicename', 'Model', 'Serial', 'Version']
    human_readable = tableToMarkdown('Device Version:', info_data, headers=headers, removeNull=True)
    demisto.results({
        'Type': entryTypes['note'],
        'ContentsFormat': formats['json'],
        'Contents': response,
        'ReadableContentsFormat': formats['markdown'],
        'HumanReadable': human_readable,
        'EntryContext': entry_context
    })
def panorama_show_device_version_command ( ) : target = str ( demisto . args ( ) [ 'target' ] ) if 'target' in demisto . args ( ) else None response = panorama_show_device_version ( target ) info_data = { 'Devicename' : response [ 'devicename' ] , 'Model' : response [ 'model' ] , 'Serial' : response [ 'serial' ] , 'Version' : response [ 'sw-version' ] } entry_context = { "Panorama.Device.Info(val.Devicename === obj.Devicename)" : info_data } headers = [ 'Devicename' , 'Model' , 'Serial' , 'Version' ] human_readable = tableToMarkdown ( 'Device Version:' , info_data , headers = headers , removeNull = True ) demisto . results ( { 'Type' : entryTypes [ 'note' ] , 'ContentsFormat' : formats [ 'json' ] , 'Contents' : response , 'ReadableContentsFormat' : formats [ 'markdown' ] , 'HumanReadable' : human_readable , 'EntryContext' : entry_context } )
Get device details and show message in war room
Get device details and show message in war room
"""
    Get device details and show message in war room
    """