Help us shape the future of Go! Take the 2026 Go Developer Survey

device_groups

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceGroupFilterSelectors = []string{
	"name",
	"description",
	"deviceType",
	"groupType",
}

Functions

func NewDeviceGroupsDataSource

func NewDeviceGroupsDataSource() datasource.DataSource

NewDeviceGroupsDataSource returns a new instance of DeviceGroupsDataSource.

Types

type DeviceGroupsDataSource

type DeviceGroupsDataSource struct {
	// contains filtered or unexported fields
}

DeviceGroupsDataSource implements the Terraform data source for Jamf device groups.

func (*DeviceGroupsDataSource) Configure

Configure sets up the API client for the data source from the provider configuration.

func (*DeviceGroupsDataSource) Metadata

Metadata sets the data source type name for the Terraform provider.

func (*DeviceGroupsDataSource) Read

Read fetches device groups that match the provided filters.

func (*DeviceGroupsDataSource) Schema

Schema sets the Terraform schema for the data source.

type DeviceGroupsDataSourceModel

type DeviceGroupsDataSourceModel struct {
	ID           types.String                        `tfsdk:"id"`
	Filters      []filters.FilterModel               `tfsdk:"filter"`
	Timeouts     timeouts.Value                      `tfsdk:"timeouts"`
	DeviceGroups []DeviceGroupsDataSourceResultModel `tfsdk:"device_groups"`
}

DeviceGroupsDataSourceModel represents the Terraform data source model for Jamf device groups.

type DeviceGroupsDataSourceResultModel

type DeviceGroupsDataSourceResultModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	DeviceType  types.String `tfsdk:"device_type"`
	GroupType   types.String `tfsdk:"group_type"`
	MemberCount types.Int64  `tfsdk:"member_count"`
}

DeviceGroupsDataSourceResultModel represents a single entry returned by the data source.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL