Documentation ¶
Overview ¶
computergroup_data_source.go
computergroup_data_validation.go
computergroup_object.go
computergroup_resource.go
computergroup_state.go
Index ¶
- Constants
- func DataSourceJamfProComputerGroups() *schema.Resource
- func DataSourceJamfProComputerGroupsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerGroups() *schema.Resource
- func ResourceJamfProComputerGroupsCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerGroupsDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerGroupsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProComputerGroupsUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- type DeviceGroupAndOr
Constants ¶
const ( And DeviceGroupAndOr = "and" Or DeviceGroupAndOr = "or" SearchTypeIs = "is" SearchTypeIsNot = "is not" SearchTypeHas = "has" SearchTypeDoesNotHave = "does not have" SearchTypeMemberOf = "member of" SearchTypeNotMemberOf = "not member of" SearchTypeBeforeYYYYMMDD = "before (yyyy-mm-dd)" SearchTypeAfterYYYYMMDD = "after (yyyy-mm-dd)" SearchTypeMoreThanXDaysAgo = "more than x days ago" SearchTypeLessThanXDaysAgo = "less than x days ago" SearchTypeLike = "like" SearchTypeNotLike = "not like" SearchTypeGreaterThan = "greater than" SearchTypeMoreThan = "more than" SearchTypeLessThan = "less than" SearchTypeGreaterThanOrEqual = "greater than or equal" SearchTypeLessThanOrEqual = "less than or equal" SearchTypeMatchesRegex = "matches regex" SearchTypeDoesNotMatch = "does not match regex" )
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProComputerGroups ¶
DataSourceJamfProComputerGroups provides information about a specific computer group in Jamf Pro.
func DataSourceJamfProComputerGroupsRead ¶
func DataSourceJamfProComputerGroupsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
DataSourceJamfProComputerGroupsRead fetches the details of a specific computer group from Jamf Pro using either its unique Name or its Id. The function prioritizes the 'name' attribute over the 'id' attribute for fetching details. If neither 'name' nor 'id' is provided, it returns an error. Once the details are fetched, they are set in the data source's state.
Parameters: - ctx: The context within which the function is called. It's used for timeouts and cancellation. - d: The current state of the data source. - meta: The meta object that can be used to retrieve the API client connection.
Returns: - diag.Diagnostics: Returns any diagnostics (errors or warnings) encountered during the function's execution.
func ResourceJamfProComputerGroups ¶
ResourceJamfProComputerGroups defines the schema and CRUD operations for managing Jamf Pro Computer Groups in Terraform.
func ResourceJamfProComputerGroupsCreate ¶
func ResourceJamfProComputerGroupsCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerGroupsCreate is responsible for creating a new Jamf Pro Computer Group in the remote system.
func ResourceJamfProComputerGroupsDelete ¶
func ResourceJamfProComputerGroupsDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerGroupsDelete is responsible for deleting a Jamf Pro Computer Group.
func ResourceJamfProComputerGroupsRead ¶
func ResourceJamfProComputerGroupsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerGroupsRead is responsible for reading the current state of a Jamf Pro Computer Group from the remote system.
func ResourceJamfProComputerGroupsUpdate ¶
func ResourceJamfProComputerGroupsUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProComputerGroupsUpdate is responsible for updating an existing Jamf Pro Computer Group on the remote system.
Types ¶
type DeviceGroupAndOr ¶
type DeviceGroupAndOr string