package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis Documentation

The activitylogalertsapis SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2020-10-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis"

Client Initialization

client := activitylogalertsapis.NewActivityLogAlertsAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsCreateOrUpdate

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

payload := activitylogalertsapis.ActivityLogAlertResource{
	// ...
}


read, err := client.ActivityLogAlertsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsDelete

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

read, err := client.ActivityLogAlertsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsGet

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

read, err := client.ActivityLogAlertsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ActivityLogAlertsListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ActivityLogAlertsListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsListBySubscriptionId

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ActivityLogAlertsListBySubscriptionId(ctx, id)` can be used to do batched pagination
items, err := client.ActivityLogAlertsListBySubscriptionIdComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsUpdate

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

payload := activitylogalertsapis.AlertRulePatchObject{
	// ...
}


read, err := client.ActivityLogAlertsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

# Functions

NewActivityLogAlertID returns a new ActivityLogAlertId struct.
No description provided by the author
ParseActivityLogAlertID parses 'input' into a ActivityLogAlertId.
ParseActivityLogAlertIDInsensitively parses 'input' case-insensitively into a ActivityLogAlertId note: this method should only be used for API response data and not user input.
ValidateActivityLogAlertID checks that 'input' can be parsed as a Activity Log Alert ID.

# Structs

No description provided by the author
No description provided by the author
ActivityLogAlertId is a struct representing the Resource ID for a Activity Log Alert.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author