Documentation ¶
Overview ¶
sites_date_source.go
sites_resource.go
Index ¶
- func DataSourceJamfProSites() *schema.Resource
- func ResourceJamfProSites() *schema.Resource
- func ResourceJamfProSitesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProSitesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProSitesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceJamfProSitesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceJamfProSites ¶
DataSourceJamfProSites provides information about a specific Jamf Pro site by its ID or Name.
func ResourceJamfProSites ¶
ResourceJamfProSite defines the schema and CRUD operations for managing Jamf Pro Sites in Terraform.
func ResourceJamfProSitesCreate ¶
func ResourceJamfProSitesCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProSitesCreate is responsible for creating a new Jamf Pro Site in the remote system. The function: 1. Constructs the attribute data using the provided Terraform configuration. 2. Calls the API to create the attribute in Jamf Pro. 3. Updates the Terraform state with the ID of the newly created attribute. 4. Initiates a read operation to synchronize the Terraform state with the actual state in Jamf Pro.
func ResourceJamfProSitesDelete ¶
func ResourceJamfProSitesDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProSitesDelete is responsible for deleting a Jamf Pro Site.
func ResourceJamfProSitesRead ¶
func ResourceJamfProSitesRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProSitesRead is responsible for reading the current state of a Jamf Pro Site 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 ResourceJamfProSitesUpdate ¶
func ResourceJamfProSitesUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceJamfProSitesUpdate is responsible for updating an existing Jamf Pro Site on the remote system.
Types ¶
This section is empty.