This file contains hidden or 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
| #!/bin/bash | |
| # This example Bash script below does the following: | |
| # - Obtains an access token. | |
| # - Completes a listComputers query request that returns a list of computers offline since a date defined in input parameters | |
| # - Asks for confirmation | |
| # - Delete offline computers | |
| # Keep the following in mind when using this script: | |
| # - You must define the PROTECT_INSTANCE_PREFIX, CLIENT_ID, and PASSWORD variables to match your Jamf Protect environment. The PROTECT_INSTANCE_PREFIX variable is your tenant name (e.g., your-tenant), which is included in your tenant URL (e.g., https://your-tenant.protect.jamfcloud.com). |
This file contains hidden or 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
| { | |
| "websites": [ | |
| "https://salesforce.com", | |
| "https://github.com", | |
| "https://monday.com", | |
| "https://okta.com", | |
| "https://zoom.us", | |
| "https://slack.com", | |
| "https://trello.com", | |
| "https://asana.com", |
This file contains hidden or 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
| #!/bin/zsh | |
| # This script will generate a bearer token for Jamf Protect and list computers in the macOS Security Portal | |
| # Jamf Protect variables | |
| PROTECT_URL='https://YOUR_INSTANCE.protect.jamfcloud.com' | |
| CLIENT_ID='' | |
| CLIENT_SECRET='' | |
| # Generate Bearer Token |
This file contains hidden or 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
| ### This script will generate a bearer token to Jamf Pro and then list all departments in the Jamf Pro tenant | |
| import requests | |
| url = "https://YOUR_INSTANCE.jamfcloud.com" | |
| client_id = "" | |
| client_secret = "" | |
| # Headers | |
| headers = { |
This file contains hidden or 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
| #!/bin/zsh | |
| # This script will do the following: | |
| # - Generate a bearer token for Jamf Pro | |
| # - List all Jamf Pro departments in the instance | |
| # - Create a new department | |
| # Get Jamf Pro variables | |
| URL="https://YOUR_INSTANCE.jamfcloud.com" | |
| API_CLIENT="" |
This file contains hidden or 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
| # This terraform config file is a basic example of how to create a category, department and building in Jamf Pro | |
| terraform { | |
| required_providers { | |
| jamfpro = { | |
| source = "deploymenttheory/jamfpro" | |
| version = "0.4.3" | |
| } | |
| } | |
| } |