Documentation ¶
Overview ¶
policies_data_source.go
policies_data_validation.go
policies_object.go
policies_resource.go
Index ¶
- func DataSourceJamfProPolicies() *schema.Resource
- func ResourceJamfProPolicies() *schema.Resource
- func ResourceJamfProPoliciesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProPoliciesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProPoliciesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProPoliciesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProPolicies ¶
DataSourceJamfProPolicies provides information about specific Jamf Pro policies by their ID or Name.
func ResourceJamfProPolicies ¶
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.