Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.62 KB

ComputerGroupsAPI.md

File metadata and controls

70 lines (43 loc) · 1.62 KB

\ComputerGroupsAPI

All URIs are relative to /api

Method HTTP request Description
V1ComputerGroupsGet Get /v1/computer-groups Returns the list of all computer groups

V1ComputerGroupsGet

[]ComputerGroup V1ComputerGroupsGet(ctx).Execute()

Returns the list of all computer groups

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.ComputerGroupsAPI.V1ComputerGroupsGet(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ComputerGroupsAPI.V1ComputerGroupsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `V1ComputerGroupsGet`: []ComputerGroup
	fmt.Fprintf(os.Stdout, "Response from `ComputerGroupsAPI.V1ComputerGroupsGet`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]ComputerGroup

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]