repositorypackage
0.0.0-20210618124423-ba54371a12c7
Repository: https://github.com/pirox07/jamf-pro-go.git
Documentation: pkg.go.dev
# README
jamf-pro-go
Jamf Pro API Client
Usage
export JAMF_BASE_URL=https://<your tenant>.jamfcloud.com
export JAMF_USER=<Jamf Pro Username>
export JAMF_USER_PASSWORD=<Jamf Pro User Password>
package main
import (
"fmt"
"os"
"https://github.com/pirox07/jamf-pro-go"
)
func main() {
url := os.Getenv("JAMF_BASE_URL")
userName := os.Getenv("JAMF_USER")
password := os.Getenv("JAMF_USER_PASSWORD")
conf, err := jamf.NewConfig(url, userName, password)
if err !=nil{
fmt.Println(err.Error())
}
client := jamf.NewClient(conf)
...
}
References
APIs
-
GET /policies
: Finds all policiesGET /policies/id/{id}
: Finds policies by IDPOST /policies/id/{id}
: Creates a new policy by IDPUT /policies/id/{id}
: Updates an existing policy by IDDELETE /policies/id/{id}
: Deletes a policy by ID
-
GET /v1/scripts
: Search for sorted and paged ScriptsGET /v1/scripts/{id}
: Retrieve a full script objectPOST /v1/scripts/{id}
: Creates a scriptPUT /v1/scripts/{id}
: Replace the script at the id with the supplied informationDELETE /v1/scripts/{id}
: Delete a Script at the specified id