Skip to main content
Question

Long Shot But... Anyone help out with a REST API call script?


Forum|alt.badge.img+4

So here's the situation: we're trying to do a mass action with the REST API of Airwatch as part of our move to JAMF. Problem is that VMware, owner of Airwatch, does NOT provide any kind of support for these actions so we're on our own... which is bad because we have no-one familiar with this.

It is in this time of need I come to the JAMF Nation collective and ask for help!

Can someone help me figure out how to do a CURL PUT to a REST API that also requries passing headers? Has anyone here had experience with the Airwatch API?

Ian

2 replies

Forum|alt.badge.img+5
  • New Contributor
  • 29 replies
  • August 2, 2017

I don't have any experience with the Airwatch API but can tell you that the following curl command will do a PUT into an extension attribute in the JSS.

curl -X PUT -H "Accept: application/xml" -H "Content-type: application/xml" -sku apiusername:apipassword -d "<computer><extension_attributes><attribute><name>Name of Extension Attribute</name><value>Value to PUT</value></attribute></extension_attributes></computer>" urlOfJSS/JSSResource/computers/name/hostnameOfComputer

It really depends on what you are trying to do. What are you trying to do a PUT on? Is it a particular field/value that already exists in the JSS or is it an extension attribute? The syntax will probably be slightly different depending on your approach.

Rob


Forum|alt.badge.img+13
  • Valued Contributor
  • 389 replies
  • August 3, 2017

This also may help...

Airwatch API
https://community.servicenow.com/docs/DOC-1907


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings