Created
February 14, 2019 15:55
-
-
Save jps3/9002cd26a8e19df97497d400388fb079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jamf_query_computer () { | |
name="${1:-myjamfcomputer}"; | |
curl -X GET -sL -H 'Accept: application/json' --user "${JAMF_API_ROUSER}:${JAMF_API_PASSWORD}" https://${JAMF_INSTANCE}.jamfcloud.com/JSSResource/computers/match/${name} | |
} | |
jamf_query_computer_pretty () { | |
jamf_query_computer $* | jq -C . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment