All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
V1JamfProInformationGet | Get /v1/jamf-pro-information | Get basic information about the Jamf Pro Server |
V2JamfProInformationGet | Get /v2/jamf-pro-information | Get basic information about the Jamf Pro Server |
JamfProInformation V1JamfProInformationGet(ctx).Execute()
Get basic information about the Jamf Pro Server
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JamfProInformationAPI.V1JamfProInformationGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JamfProInformationAPI.V1JamfProInformationGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1JamfProInformationGet`: JamfProInformation
fmt.Fprintf(os.Stdout, "Response from `JamfProInformationAPI.V1JamfProInformationGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1JamfProInformationGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JamfProInformationV2 V2JamfProInformationGet(ctx).Execute()
Get basic information about the Jamf Pro Server
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yohan460/go-jamf-api/api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.JamfProInformationAPI.V2JamfProInformationGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `JamfProInformationAPI.V2JamfProInformationGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V2JamfProInformationGet`: JamfProInformationV2
fmt.Fprintf(os.Stdout, "Response from `JamfProInformationAPI.V2JamfProInformationGet`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV2JamfProInformationGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]