policies

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

policies_data_source.go

policies_data_validation.go

policies_object.go

policies_resource.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceJamfProPolicies

func DataSourceJamfProPolicies() *schema.Resource

DataSourceJamfProPolicies provides information about specific Jamf Pro policies by their ID or Name.

func DataSourceJamfProPoliciesRead added in v0.0.18

func DataSourceJamfProPoliciesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

DataSourceJamfProPoliciesRead fetches the details of specific policy items from Jamf Pro using either their unique Name or Id.

func ResourceJamfProPolicies

func ResourceJamfProPolicies() *schema.Resource

ResourceJamfProPolicies defines the schema and CRUD operations for managing Jamf Pro Policy in Terraform.

func ResourceJamfProPoliciesCreate

func ResourceJamfProPoliciesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProPoliciesCreate is responsible for reading the current state of a Jamf Pro policy from the remote system. The function: 1. Fetches the policies current state using its ID. If it fails then obtain profile's current state using its Name. 2. Updates the Terraform state with the fetched data to ensure it accurately reflects the current state in Jamf Pro. 3. Handles any discrepancies, such as the profile being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProPoliciesDelete

func ResourceJamfProPoliciesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProPoliciesDelete is responsible for deleting a Jamf Pro policy.

func ResourceJamfProPoliciesRead

func ResourceJamfProPoliciesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProPoliciesRead is responsible for reading the current state of a Jamf Pro policy Resource from the remote system. The function: 1. Fetches the attribute's current state using its ID. If it fails then obtain attribute's current state using its Name. 2. Updates the Terraform state with the fetched data to ensure it accurately reflects the current state in Jamf Pro. 3. Handles any discrepancies, such as the attribute being deleted outside of Terraform, to keep the Terraform state synchronized.

func ResourceJamfProPoliciesUpdate

func ResourceJamfProPoliciesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

ResourceJamfProPoliciesUpdate is responsible for updating an existing Jamf Pro policy on the remote system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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