#!/bin/bash
# Get safari status
Safari=$(sudo curl -s "https://user:password@jamfserver.com:8443/JSSResource/computerapplications/application/*Safari.app*/inventory/Asset%20Tag%2CPlatform" -H "accept: application/json" | grep -e versions | sed 's/\,"unique_computers.*//' | awk '{print $0}' | tr -s '\n' ' ' | tr -s ',' '\n' | sed -e 's/^"//' -e 's/"$//' | tr -d \" | grep -e number -e name | grep -v serial_number | sed 's/{//' | sed 's/computer_applications://' | sed 's/{versions:\[//' | sed 's/{//' | tee /dev/stderr | wc -l)
echo $Safari
Download the certificate currently configured for use with Jamf Pro’s SSO configuration
https://yourServer.jamfcloud.com/api/v1/sso/cert/download
https://developer.jamf.com/jamf-pro/reference/get_v1-sso-cert-download
packages
Operations on packages
https://jamfProServer.com:8443/classicapi/doc/#/
Filemaker workflows
https://www.jamf.com/resources/videos/the-jss-api-and-custom-workflows/
***TESTING PURPOSES – Self Signed Curl issues
https://linuxpip.org/curl-failed-to-verify-the-legitimacy-of-the-server/#:~:text=%22Failed%20to%20verify%20the%20legitimacy%20of%20the%20server%22%20is%20an,to%20it%20cannot%20be%20made.
Link
https://developer.jamf.com/
https://developer.jamf.com/jamf-pro/reference/classic-api
Generate Authentication Key – generate a basic authentication token by encoding the
Command:
echo -n "username:password" | base64