- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-26-2013 02:51 PM
Hello,
I an doing a traffic query through the API like this
https://pa/api?/type=log&log-type=traffic&query=(add.src in 10.1.1.1)&key=API_KEY
I get the response with a job id.
But when i try to get the content of the job ID
https://pa/api?/type=log&action=get&job-id=JOB&key=API_KEY
I get the following error
<response status="error" code="17">
<msg>
<line>show-> query -> id is unexpected </line>
</msg>
</response>
03-27-2013 09:17 PM
I was able to duplicate the error you were seeing and was able to get the query results using the following command:
//firewall/api/?&type=op&cmd=<show><query><result><id>JOB-ID</id></result></query></show>&key=API_KEY
04-03-2013 10:46 PM
//firewall/api/?&type=op&cmd=<show><query><result><id>JOB-ID</id></result></query></show>&key=API_KEY
This command resulted in an error.
<response status="error" code="17">
<msg>
<line>
<![CDATA[ show -> query -> result is unexpected ]]>
</line>
</msg>
</response>
//firewall/api/?&type=op&cmd=<show><query><id>JOB-ID</id></query></show>&key=API_KEY
This command worked.
//firewall/api?/type=log&action=get&job-id=JOB&key=API_KEY
This command worked, too.
Tested in 5.0.3.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!