Documentation ¶
Overview ¶
staticcomputergroup_object.go
staticcomputergroup_crud.go
staticcomputergroup_data_source.go
staticcomputergroup_data_validator.go
computergroup_state.go
Index ¶
Constants ¶
const ( And string = "and" Or string = "or" SearchTypeIs string = "is" SearchTypeIsNot string = "is not" SearchTypeHas string = "has" SearchTypeDoesNotHave string = "does not have" SearchTypeMemberOf string = "member of" SearchTypeNotMemberOf string = "not member of" SearchTypeBeforeYYYYMMDD string = "before (yyyy-mm-dd)" SearchTypeAfterYYYYMMDD string = "after (yyyy-mm-dd)" SearchTypeMoreThanXDaysAgo string = "more than x days ago" SearchTypeLessThanXDaysAgo string = "less than x days ago" SearchTypeLike string = "like" SearchTypeNotLike string = "not like" SearchTypeGreaterThan string = "greater than" SearchTypeMoreThan string = "more than" SearchTypeLessThan string = "less than" SearchTypeGreaterThanOrEqual string = "greater than or equal" SearchTypeLessThanOrEqual string = "less than or equal" SearchTypeMatchesRegex string = "matches regex" SearchTypeDoesNotMatch string = "does not match regex" )
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProStaticComputerGroups ¶
DataSourceJamfProStaticComputerGroups provides information about a specific computer group in Jamf Pro.
func DataSourceJamfProStaticComputerGroupsRead ¶
func DataSourceJamfProStaticComputerGroupsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
DataSourceJamfProStaticComputerGroupsRead 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 ResourceJamfProStaticComputerGroups ¶
resourceJamfProStaticComputerGroups defines the schema and CRUD operations for managing Jamf Pro static Computer Groups in Terraform.
Types ¶
This section is empty.