Using cookies to make sure you hit the same server and reduce 409 errors #27
Replies: 1 comment 1 reply
-
Hi @Honestpuck, Thanks for the information. To be clear, this is used primarily for uploading packages to Jamf Distribution Point? Or you using it for other integrations?
So, maybe log-term with the project, we might need to implement these for additional integrations out simply uploading packages like creating new resources. I would like ability to create new policies, patch management items and definitions, etc. to automate new software distributions, etc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I've just written and debugged some code for PatchBot that should be useful for python-jamf. It uses a cookie (they are different for standard and premium JPC customers) that is returned by a request and can be passed back to get the same box. The variable
self.cookie
is for use inrequests()
calls ascookie=self.cookie
, the variable c_cookie is for use incurl
calls after a-b
parameter.The reference doc is
DR-StickySessionstoJamfCloudEnvironmentsforAPIs-020920-1503.pdf
which mentions the APBALANCEID cookie, but I discovered the Premium difference and got Jamf to tell me about AWSALB for that. Since I haven't touched
api.py
I'm just leaving this here.Beta Was this translation helpful? Give feedback.
All reactions