- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Sample REST api response for show-tasks, for a...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any feedback please? Anyone from Checkpoint tech support can help here?
Appreciate prompt response so I can move forward with my project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @PhoneBoy . I can try to play more in there. But if Checkpoint staff has a list readily to share, please do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you again @PhoneBoy .
