Skip to content

Latest commit

 

History

History
132 lines (82 loc) · 3.28 KB

JamfProInformationAPI.md

File metadata and controls

132 lines (82 loc) · 3.28 KB

\JamfProInformationAPI

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

V1JamfProInformationGet

JamfProInformation V1JamfProInformationGet(ctx).Execute()

Get basic information about the Jamf Pro Server

Example

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiV1JamfProInformationGetRequest struct via the builder pattern

Return type

JamfProInformation

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

V2JamfProInformationGet

JamfProInformationV2 V2JamfProInformationGet(ctx).Execute()

Get basic information about the Jamf Pro Server

Example

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiV2JamfProInformationGetRequest struct via the builder pattern

Return type

JamfProInformationV2

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]