Categorygithub.com/hashicorp/go-azure-sdkresource-managersecurity2017-08-01-previewiotsecuritysolutions
package
0.20240125.1100331
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/iotsecuritysolutions
Documentation
The iotsecuritysolutions
SDK allows for interaction with the Azure Resource Manager Service security
(API Version 2017-08-01-preview
).
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-sdk/resource-manager/security/2017-08-01-preview/iotsecuritysolutions"
Client Initialization
client := iotsecuritysolutions.NewIotSecuritySolutionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: IotSecuritySolutionsClient.IoTSecuritySolutionsList
ctx := context.TODO()
id := iotsecuritysolutions.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.IoTSecuritySolutionsList(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsListOperationOptions())` can be used to do batched pagination
items, err := client.IoTSecuritySolutionsListComplete(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: IotSecuritySolutionsClient.IoTSecuritySolutionsResourceGroupList
ctx := context.TODO()
id := iotsecuritysolutions.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.IoTSecuritySolutionsResourceGroupList(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsResourceGroupListOperationOptions())` can be used to do batched pagination
items, err := client.IoTSecuritySolutionsResourceGroupListComplete(ctx, id, iotsecuritysolutions.DefaultIoTSecuritySolutionsResourceGroupListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: IotSecuritySolutionsClient.IotSecuritySolutionCreate
ctx := context.TODO()
id := iotsecuritysolutions.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")
payload := iotsecuritysolutions.IoTSecuritySolutionModel{
// ...
}
read, err := client.IotSecuritySolutionCreate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IotSecuritySolutionsClient.IotSecuritySolutionDelete
ctx := context.TODO()
id := iotsecuritysolutions.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")
read, err := client.IotSecuritySolutionDelete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IotSecuritySolutionsClient.IotSecuritySolutionGet
ctx := context.TODO()
id := iotsecuritysolutions.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")
read, err := client.IotSecuritySolutionGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IotSecuritySolutionsClient.IotSecuritySolutionUpdate
ctx := context.TODO()
id := iotsecuritysolutions.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")
payload := iotsecuritysolutions.UpdateIotSecuritySolutionData{
// ...
}
read, err := client.IotSecuritySolutionUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}