Need to get PCAP file from a ASA. Retrieve the pcap file from ASA automatically and concatenate all the file to have a larger pcap file ..
Unfortunately, no. The REST APIs supported by APIC-EM does not allow for arbitrary CLI commands to be executed, and the diagnostic elements of the ASA are not part of the current data model. You will need to script an SSH connection to the ASA to collect your PCAP files and store it/them where required.