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). |