Integrations/Panorama/Panorama.py
def panorama_download_panos_version_command():
    """
    Check jobID of pan-os version download
    """
    if DEVICE_GROUP:
        raise Exception('Downloading PAN-OS version is only supported on Firewall (not Panorama).')
    target = str(demisto.args()['target']) if 'target' in demisto.args() else None
    target_version = str(demisto.args()['target_version'])
    result = panorama_download_panos_version(target, target_version)

    if 'result' in result['response']:
        # download has been given a jobid
        panos_version_download = {
            'JobID': result['response']['result']['job']
        }
        entry_context = {"Panorama.PANOS.Download(val.JobID == obj.JobID)": panos_version_download}
        human_readable = tableToMarkdown('Result:', panos_version_download, ['JobID', 'Status'], removeNull=True)

        demisto.results({
            'Type': entryTypes['note'],
            'ContentsFormat': formats['json'],
            'Contents': result,
            'ReadableContentsFormat': formats['markdown'],
            'HumanReadable': human_readable,
            'EntryContext': entry_context
        })
    else:
        # no panos download took place
        demisto.results(result['response']['msg'])

    Check jobID of pan-os version download
    
Check jobID of pan-os version download
Check jobID of pan - os version download
def panorama_download_panos_version_command():
    if DEVICE_GROUP:
        raise Exception('Downloading PAN-OS version is only supported on Firewall (not Panorama).')
    target = str(demisto.args()['target']) if 'target' in demisto.args() else None
    target_version = str(demisto.args()['target_version'])
    result = panorama_download_panos_version(target, target_version)
    if 'result' in result['response']:
        panos_version_download = {
            'JobID': result['response']['result']['job']
        }
        entry_context = {"Panorama.PANOS.Download(val.JobID == obj.JobID)": panos_version_download}
        human_readable = tableToMarkdown('Result:', panos_version_download, ['JobID', 'Status'], removeNull=True)
        demisto.results({
            'Type': entryTypes['note'],
            'ContentsFormat': formats['json'],
            'Contents': result,
            'ReadableContentsFormat': formats['markdown'],
            'HumanReadable': human_readable,
            'EntryContext': entry_context
        })
    else:
        demisto.results(result['response']['msg'])
def panorama_download_panos_version_command ( ) : if DEVICE_GROUP : raise Exception ( 'Downloading PAN-OS version is only supported on Firewall (not Panorama).' ) target = str ( demisto . args ( ) [ 'target' ] ) if 'target' in demisto . args ( ) else None target_version = str ( demisto . args ( ) [ 'target_version' ] ) result = panorama_download_panos_version ( target , target_version ) if 'result' in result [ 'response' ] : panos_version_download = { 'JobID' : result [ 'response' ] [ 'result' ] [ 'job' ] } entry_context = { "Panorama.PANOS.Download(val.JobID == obj.JobID)" : panos_version_download } human_readable = tableToMarkdown ( 'Result:' , panos_version_download , [ 'JobID' , 'Status' ] , removeNull = True ) demisto . results ( { 'Type' : entryTypes [ 'note' ] , 'ContentsFormat' : formats [ 'json' ] , 'Contents' : result , 'ReadableContentsFormat' : formats [ 'markdown' ] , 'HumanReadable' : human_readable , 'EntryContext' : entry_context } ) else : demisto . results ( result [ 'response' ] [ 'msg' ] )
Check jobID of pan-os version download
Check jobID of pan - os version download
"""
    Check jobID of pan-os version download
    """ # download has been given a jobid # no panos download took place