Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
pdn
Participant

Sample REST api response for show-tasks, for a failed task

 

I can't find a sample REST api response for show-tasks, for a failed task.  In our checkpoint fw, as well as checkpoint documentation (below).

 

Can someone here please share a sample failed task response?  I am specifically interested in the comment field, for our automation effort.

 

Thanks,

 

Peter

 

https://sc1.checkpoint.com/documents/latest/APIs/?#web/show-tasks~v1.8%20

 

show-tasks response (1).png

0 Kudos
7 Replies
pdn
Participant

Any feedback please?   Anyone from Checkpoint tech support can help here?

 

Appreciate prompt response so I can move forward with my project.  

 

0 Kudos
Amir_Senn
Employee
Employee

Hi, looking for something in particular?

Best way to create those error are start putting wrong/illegal values in the request.

Wrong or expired session ID, non-existing parameters or illegal values are a few ideas.

 
 
Kind regards, Amir Senn
0 Kudos
pdn
Participant

Hhi Amir,

We just want to see the all the failed conditions and comments for the failed tasks, with that show-tasks endpoint.

I only have read-only access to our lab checkpoint firewall.   So, I can't do those tests you suggested.  Can you help do the test and share the failed responses?

Thanks,

Peter

0 Kudos
PhoneBoy
Admin
Admin

There are many reasons a task might fail.
If you cannot do these tests in your environment, I recommend checking out our automation lab: https://community.checkpoint.com/t5/R81-Automation-and-Orchestration/ct-p/r81-automation-orchestrati...
You can perform whatever tests you'd like there and see the precise API results.

0 Kudos
pdn
Participant

Thanks @PhoneBoy .  I can try to play more in there.  But if Checkpoint staff has a list readily to share, please do.  

0 Kudos
PhoneBoy
Admin
Admin

If anything has any pre-prepared "examples" of a failed task, it would be Demo Mode.
However, it doesn't appear there is (only a task with a "Warning").
And, in any case, even if we are to provide an example, there may be different failure conditions and responses (depending on the task).

One example posted to the community for a failed policy installation: https://community.checkpoint.com/t5/API-CLI-Discussion/show-task-failure-with-quot-no-scope-found-fo... 
Another one is: https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command... 

You may be able to search the community and find other examples. 

0 Kudos
pdn
Participant

Thank you again @PhoneBoy .

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events