Categorygithub.com/hashicorp/go-azure-sdkresource-managernetwork2023-06-01securityadminconfigurations
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/network/2023-06-01/securityadminconfigurations
Documentation
The securityadminconfigurations
SDK allows for interaction with the Azure Resource Manager Service network
(API Version 2023-06-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-sdk/resource-manager/network/2023-06-01/securityadminconfigurations"
Client Initialization
client := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SecurityAdminConfigurationsClient.CreateOrUpdate
ctx := context.TODO()
id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue")
payload := securityadminconfigurations.SecurityAdminConfiguration{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SecurityAdminConfigurationsClient.Delete
ctx := context.TODO()
id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue")
if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil {
// handle the error
}
Example Usage: SecurityAdminConfigurationsClient.Get
ctx := context.TODO()
id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SecurityAdminConfigurationsClient.List
ctx := context.TODO()
id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue")
// alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
No description provided by the author
No description provided by the author
NewNetworkManagerID returns a new NetworkManagerId struct.
NewSecurityAdminConfigurationID returns a new SecurityAdminConfigurationId struct.
No description provided by the author
ParseNetworkManagerID parses 'input' into a NetworkManagerId.
ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId note: this method should only be used for API response data and not user input.
ParseSecurityAdminConfigurationID parses 'input' into a SecurityAdminConfigurationId.
ParseSecurityAdminConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID.
ValidateSecurityAdminConfigurationID checks that 'input' can be parsed as a Security Admin Configuration ID.
# Constants
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
# Structs
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
NetworkManagerId is a struct representing the Resource ID for a Network Manager.
No description provided by the author
SecurityAdminConfigurationId is a struct representing the Resource ID for a Security Admin Configuration.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author