firewallpolicies

package
v0.20241104.1140654 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies Documentation

The firewallpolicies SDK allows for interaction with Azure Resource Manager network (API Version 2023-09-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/network/2023-09-01/firewallpolicies"

Client Initialization

client := firewallpolicies.NewFirewallPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FirewallPoliciesClient.CreateOrUpdate

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

payload := firewallpolicies.FirewallPolicy{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: FirewallPoliciesClient.Delete

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

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesFilterValuesList

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

payload := firewallpolicies.SignatureOverridesFilterValuesQuery{
	// ...
}


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

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesList

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

payload := firewallpolicies.IDPSQueryObject{
	// ...
}


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

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesGet

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

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

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesList

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

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

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPatch

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

payload := firewallpolicies.SignaturesOverrides{
	// ...
}


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

Example Usage: FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPut

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

payload := firewallpolicies.SignaturesOverrides{
	// ...
}


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

Example Usage: FirewallPoliciesClient.Get

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

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

Example Usage: FirewallPoliciesClient.List

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

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

Example Usage: FirewallPoliciesClient.ListAll

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

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

Example Usage: FirewallPoliciesClient.UpdateTags

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

payload := firewallpolicies.TagsObject{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAutoLearnPrivateRangesMode

func PossibleValuesForAutoLearnPrivateRangesMode() []string

func PossibleValuesForAzureFirewallThreatIntelMode

func PossibleValuesForAzureFirewallThreatIntelMode() []string

func PossibleValuesForFirewallPolicyIDPSQuerySortOrder

func PossibleValuesForFirewallPolicyIDPSQuerySortOrder() []string

func PossibleValuesForFirewallPolicyIDPSSignatureDirection

func PossibleValuesForFirewallPolicyIDPSSignatureDirection() []int64

func PossibleValuesForFirewallPolicyIDPSSignatureMode

func PossibleValuesForFirewallPolicyIDPSSignatureMode() []int64

func PossibleValuesForFirewallPolicyIDPSSignatureSeverity

func PossibleValuesForFirewallPolicyIDPSSignatureSeverity() []int64

func PossibleValuesForFirewallPolicyIntrusionDetectionProfileType

func PossibleValuesForFirewallPolicyIntrusionDetectionProfileType() []string

func PossibleValuesForFirewallPolicyIntrusionDetectionProtocol

func PossibleValuesForFirewallPolicyIntrusionDetectionProtocol() []string

func PossibleValuesForFirewallPolicyIntrusionDetectionStateType

func PossibleValuesForFirewallPolicyIntrusionDetectionStateType() []string

func PossibleValuesForFirewallPolicySkuTier

func PossibleValuesForFirewallPolicySkuTier() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateFirewallPolicyID

func ValidateFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error)

ValidateFirewallPolicyID checks that 'input' can be parsed as a Firewall Policy ID

Types

type AutoLearnPrivateRangesMode

type AutoLearnPrivateRangesMode string
const (
	AutoLearnPrivateRangesModeDisabled AutoLearnPrivateRangesMode = "Disabled"
	AutoLearnPrivateRangesModeEnabled  AutoLearnPrivateRangesMode = "Enabled"
)

func (*AutoLearnPrivateRangesMode) UnmarshalJSON

func (s *AutoLearnPrivateRangesMode) UnmarshalJSON(bytes []byte) error

type AzureFirewallThreatIntelMode

type AzureFirewallThreatIntelMode string
const (
	AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert"
	AzureFirewallThreatIntelModeDeny  AzureFirewallThreatIntelMode = "Deny"
	AzureFirewallThreatIntelModeOff   AzureFirewallThreatIntelMode = "Off"
)

func (*AzureFirewallThreatIntelMode) UnmarshalJSON

func (s *AzureFirewallThreatIntelMode) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *FirewallPolicy
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DnsSettings

type DnsSettings struct {
	EnableProxy                 *bool     `json:"enableProxy,omitempty"`
	RequireProxyForNetworkRules *bool     `json:"requireProxyForNetworkRules,omitempty"`
	Servers                     *[]string `json:"servers,omitempty"`
}

type ExplicitProxy

type ExplicitProxy struct {
	EnableExplicitProxy *bool   `json:"enableExplicitProxy,omitempty"`
	EnablePacFile       *bool   `json:"enablePacFile,omitempty"`
	HTTPPort            *int64  `json:"httpPort,omitempty"`
	HTTPSPort           *int64  `json:"httpsPort,omitempty"`
	PacFile             *string `json:"pacFile,omitempty"`
	PacFilePort         *int64  `json:"pacFilePort,omitempty"`
}

type FilterItems

type FilterItems struct {
	Field  *string   `json:"field,omitempty"`
	Values *[]string `json:"values,omitempty"`
}

type FirewallPoliciesClient

type FirewallPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewFirewallPoliciesClientWithBaseURI

func NewFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPoliciesClient, error)

func (FirewallPoliciesClient) CreateOrUpdate

CreateOrUpdate ...

func (FirewallPoliciesClient) CreateOrUpdateThenPoll

func (c FirewallPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id FirewallPolicyId, input FirewallPolicy) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (FirewallPoliciesClient) Delete

Delete ...

func (FirewallPoliciesClient) DeleteThenPoll

func (c FirewallPoliciesClient) DeleteThenPoll(ctx context.Context, id FirewallPolicyId) error

DeleteThenPoll performs Delete then polls until it's completed

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesFilterValuesList

FirewallPolicyIdpsSignaturesFilterValuesList ...

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesList

FirewallPolicyIdpsSignaturesList ...

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet

func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesGetOperationResponse, err error)

FirewallPolicyIdpsSignaturesOverridesGet ...

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList

func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesListOperationResponse, err error)

FirewallPolicyIdpsSignaturesOverridesList ...

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch

func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch(ctx context.Context, id FirewallPolicyId, input SignaturesOverrides) (result FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse, err error)

FirewallPolicyIdpsSignaturesOverridesPatch ...

func (FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPut

FirewallPolicyIdpsSignaturesOverridesPut ...

func (FirewallPoliciesClient) Get

Get ...

func (FirewallPoliciesClient) List

List ...

func (FirewallPoliciesClient) ListAll

ListAll ...

func (FirewallPoliciesClient) ListAllComplete

ListAllComplete retrieves all the results into a single object

func (FirewallPoliciesClient) ListAllCompleteMatchingPredicate

func (c FirewallPoliciesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate FirewallPolicyOperationPredicate) (result ListAllCompleteResult, err error)

ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (FirewallPoliciesClient) ListComplete

ListComplete retrieves all the results into a single object

func (FirewallPoliciesClient) ListCompleteMatchingPredicate

func (c FirewallPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate FirewallPolicyOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (FirewallPoliciesClient) UpdateTags

UpdateTags ...

type FirewallPolicy

type FirewallPolicy struct {
	Etag       *string                            `json:"etag,omitempty"`
	Id         *string                            `json:"id,omitempty"`
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   *string                            `json:"location,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties *FirewallPolicyPropertiesFormat    `json:"properties,omitempty"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type FirewallPolicyCertificateAuthority

type FirewallPolicyCertificateAuthority struct {
	KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"`
	Name             *string `json:"name,omitempty"`
}

type FirewallPolicyIDPSQuerySortOrder

type FirewallPolicyIDPSQuerySortOrder string
const (
	FirewallPolicyIDPSQuerySortOrderAscending  FirewallPolicyIDPSQuerySortOrder = "Ascending"
	FirewallPolicyIDPSQuerySortOrderDescending FirewallPolicyIDPSQuerySortOrder = "Descending"
)

func (*FirewallPolicyIDPSQuerySortOrder) UnmarshalJSON

func (s *FirewallPolicyIDPSQuerySortOrder) UnmarshalJSON(bytes []byte) error

type FirewallPolicyIDPSSignatureDirection

type FirewallPolicyIDPSSignatureDirection int64
const (
	FirewallPolicyIDPSSignatureDirectionFour  FirewallPolicyIDPSSignatureDirection = 4
	FirewallPolicyIDPSSignatureDirectionOne   FirewallPolicyIDPSSignatureDirection = 1
	FirewallPolicyIDPSSignatureDirectionThree FirewallPolicyIDPSSignatureDirection = 3
	FirewallPolicyIDPSSignatureDirectionTwo   FirewallPolicyIDPSSignatureDirection = 2
	FirewallPolicyIDPSSignatureDirectionZero  FirewallPolicyIDPSSignatureDirection = 0
)

type FirewallPolicyIDPSSignatureMode

type FirewallPolicyIDPSSignatureMode int64
const (
	FirewallPolicyIDPSSignatureModeOne  FirewallPolicyIDPSSignatureMode = 1
	FirewallPolicyIDPSSignatureModeTwo  FirewallPolicyIDPSSignatureMode = 2
	FirewallPolicyIDPSSignatureModeZero FirewallPolicyIDPSSignatureMode = 0
)

type FirewallPolicyIDPSSignatureSeverity

type FirewallPolicyIDPSSignatureSeverity int64
const (
	FirewallPolicyIDPSSignatureSeverityOne   FirewallPolicyIDPSSignatureSeverity = 1
	FirewallPolicyIDPSSignatureSeverityThree FirewallPolicyIDPSSignatureSeverity = 3
	FirewallPolicyIDPSSignatureSeverityTwo   FirewallPolicyIDPSSignatureSeverity = 2
)

type FirewallPolicyId

type FirewallPolicyId struct {
	SubscriptionId     string
	ResourceGroupName  string
	FirewallPolicyName string
}

FirewallPolicyId is a struct representing the Resource ID for a Firewall Policy

func NewFirewallPolicyID

func NewFirewallPolicyID(subscriptionId string, resourceGroupName string, firewallPolicyName string) FirewallPolicyId

NewFirewallPolicyID returns a new FirewallPolicyId struct

func ParseFirewallPolicyID

func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error)

ParseFirewallPolicyID parses 'input' into a FirewallPolicyId

func ParseFirewallPolicyIDInsensitively

func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error)

ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId note: this method should only be used for API response data and not user input

func (*FirewallPolicyId) FromParseResult

func (id *FirewallPolicyId) FromParseResult(input resourceids.ParseResult) error

func (FirewallPolicyId) ID

func (id FirewallPolicyId) ID() string

ID returns the formatted Firewall Policy ID

func (FirewallPolicyId) Segments

func (id FirewallPolicyId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Firewall Policy ID

func (FirewallPolicyId) String

func (id FirewallPolicyId) String() string

String returns a human-readable description of this Firewall Policy ID

type FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse

type FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SignatureOverridesFilterValuesResponse
}

type FirewallPolicyIdpsSignaturesListOperationResponse

type FirewallPolicyIdpsSignaturesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *QueryResults
}

type FirewallPolicyIdpsSignaturesOverridesGetOperationResponse

type FirewallPolicyIdpsSignaturesOverridesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SignaturesOverrides
}

type FirewallPolicyIdpsSignaturesOverridesListOperationResponse

type FirewallPolicyIdpsSignaturesOverridesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SignaturesOverridesList
}

type FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse

type FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SignaturesOverrides
}

type FirewallPolicyIdpsSignaturesOverridesPutOperationResponse

type FirewallPolicyIdpsSignaturesOverridesPutOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SignaturesOverrides
}

type FirewallPolicyInsights

type FirewallPolicyInsights struct {
	IsEnabled             *bool                                `json:"isEnabled,omitempty"`
	LogAnalyticsResources *FirewallPolicyLogAnalyticsResources `json:"logAnalyticsResources,omitempty"`
	RetentionDays         *int64                               `json:"retentionDays,omitempty"`
}

type FirewallPolicyIntrusionDetection

type FirewallPolicyIntrusionDetection struct {
	Configuration *FirewallPolicyIntrusionDetectionConfiguration `json:"configuration,omitempty"`
	Mode          *FirewallPolicyIntrusionDetectionStateType     `json:"mode,omitempty"`
	Profile       *FirewallPolicyIntrusionDetectionProfileType   `json:"profile,omitempty"`
}

type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications

type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications struct {
	Description          *string                                   `json:"description,omitempty"`
	DestinationAddresses *[]string                                 `json:"destinationAddresses,omitempty"`
	DestinationIPGroups  *[]string                                 `json:"destinationIpGroups,omitempty"`
	DestinationPorts     *[]string                                 `json:"destinationPorts,omitempty"`
	Name                 *string                                   `json:"name,omitempty"`
	Protocol             *FirewallPolicyIntrusionDetectionProtocol `json:"protocol,omitempty"`
	SourceAddresses      *[]string                                 `json:"sourceAddresses,omitempty"`
	SourceIPGroups       *[]string                                 `json:"sourceIpGroups,omitempty"`
}

type FirewallPolicyIntrusionDetectionConfiguration

type FirewallPolicyIntrusionDetectionConfiguration struct {
	BypassTrafficSettings *[]FirewallPolicyIntrusionDetectionBypassTrafficSpecifications `json:"bypassTrafficSettings,omitempty"`
	PrivateRanges         *[]string                                                      `json:"privateRanges,omitempty"`
	SignatureOverrides    *[]FirewallPolicyIntrusionDetectionSignatureSpecification      `json:"signatureOverrides,omitempty"`
}

type FirewallPolicyIntrusionDetectionProfileType

type FirewallPolicyIntrusionDetectionProfileType string
const (
	FirewallPolicyIntrusionDetectionProfileTypeAdvanced FirewallPolicyIntrusionDetectionProfileType = "Advanced"
	FirewallPolicyIntrusionDetectionProfileTypeBasic    FirewallPolicyIntrusionDetectionProfileType = "Basic"
	FirewallPolicyIntrusionDetectionProfileTypeExtended FirewallPolicyIntrusionDetectionProfileType = "Extended"
	FirewallPolicyIntrusionDetectionProfileTypeStandard FirewallPolicyIntrusionDetectionProfileType = "Standard"
)

func (*FirewallPolicyIntrusionDetectionProfileType) UnmarshalJSON

func (s *FirewallPolicyIntrusionDetectionProfileType) UnmarshalJSON(bytes []byte) error

type FirewallPolicyIntrusionDetectionProtocol

type FirewallPolicyIntrusionDetectionProtocol string
const (
	FirewallPolicyIntrusionDetectionProtocolANY  FirewallPolicyIntrusionDetectionProtocol = "ANY"
	FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = "ICMP"
	FirewallPolicyIntrusionDetectionProtocolTCP  FirewallPolicyIntrusionDetectionProtocol = "TCP"
	FirewallPolicyIntrusionDetectionProtocolUDP  FirewallPolicyIntrusionDetectionProtocol = "UDP"
)

func (*FirewallPolicyIntrusionDetectionProtocol) UnmarshalJSON

func (s *FirewallPolicyIntrusionDetectionProtocol) UnmarshalJSON(bytes []byte) error

type FirewallPolicyIntrusionDetectionSignatureSpecification

type FirewallPolicyIntrusionDetectionSignatureSpecification struct {
	Id   *string                                    `json:"id,omitempty"`
	Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"`
}

type FirewallPolicyIntrusionDetectionStateType

type FirewallPolicyIntrusionDetectionStateType string
const (
	FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = "Alert"
	FirewallPolicyIntrusionDetectionStateTypeDeny  FirewallPolicyIntrusionDetectionStateType = "Deny"
	FirewallPolicyIntrusionDetectionStateTypeOff   FirewallPolicyIntrusionDetectionStateType = "Off"
)

func (*FirewallPolicyIntrusionDetectionStateType) UnmarshalJSON

func (s *FirewallPolicyIntrusionDetectionStateType) UnmarshalJSON(bytes []byte) error

type FirewallPolicyLogAnalyticsResources

type FirewallPolicyLogAnalyticsResources struct {
	DefaultWorkspaceId *SubResource                           `json:"defaultWorkspaceId,omitempty"`
	Workspaces         *[]FirewallPolicyLogAnalyticsWorkspace `json:"workspaces,omitempty"`
}

type FirewallPolicyLogAnalyticsWorkspace

type FirewallPolicyLogAnalyticsWorkspace struct {
	Region      *string      `json:"region,omitempty"`
	WorkspaceId *SubResource `json:"workspaceId,omitempty"`
}

type FirewallPolicyOperationPredicate

type FirewallPolicyOperationPredicate struct {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (FirewallPolicyOperationPredicate) Matches

type FirewallPolicyPropertiesFormat

type FirewallPolicyPropertiesFormat struct {
	BasePolicy           *SubResource                        `json:"basePolicy,omitempty"`
	ChildPolicies        *[]SubResource                      `json:"childPolicies,omitempty"`
	DnsSettings          *DnsSettings                        `json:"dnsSettings,omitempty"`
	ExplicitProxy        *ExplicitProxy                      `json:"explicitProxy,omitempty"`
	Firewalls            *[]SubResource                      `json:"firewalls,omitempty"`
	Insights             *FirewallPolicyInsights             `json:"insights,omitempty"`
	IntrusionDetection   *FirewallPolicyIntrusionDetection   `json:"intrusionDetection,omitempty"`
	ProvisioningState    *ProvisioningState                  `json:"provisioningState,omitempty"`
	RuleCollectionGroups *[]SubResource                      `json:"ruleCollectionGroups,omitempty"`
	Size                 *string                             `json:"size,omitempty"`
	Sku                  *FirewallPolicySku                  `json:"sku,omitempty"`
	Snat                 *FirewallPolicySNAT                 `json:"snat,omitempty"`
	Sql                  *FirewallPolicySQL                  `json:"sql,omitempty"`
	ThreatIntelMode      *AzureFirewallThreatIntelMode       `json:"threatIntelMode,omitempty"`
	ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"`
	TransportSecurity    *FirewallPolicyTransportSecurity    `json:"transportSecurity,omitempty"`
}

type FirewallPolicySNAT

type FirewallPolicySNAT struct {
	AutoLearnPrivateRanges *AutoLearnPrivateRangesMode `json:"autoLearnPrivateRanges,omitempty"`
	PrivateRanges          *[]string                   `json:"privateRanges,omitempty"`
}

type FirewallPolicySQL

type FirewallPolicySQL struct {
	AllowSqlRedirect *bool `json:"allowSqlRedirect,omitempty"`
}

type FirewallPolicySku

type FirewallPolicySku struct {
	Tier *FirewallPolicySkuTier `json:"tier,omitempty"`
}

type FirewallPolicySkuTier

type FirewallPolicySkuTier string
const (
	FirewallPolicySkuTierBasic    FirewallPolicySkuTier = "Basic"
	FirewallPolicySkuTierPremium  FirewallPolicySkuTier = "Premium"
	FirewallPolicySkuTierStandard FirewallPolicySkuTier = "Standard"
)

func (*FirewallPolicySkuTier) UnmarshalJSON

func (s *FirewallPolicySkuTier) UnmarshalJSON(bytes []byte) error

type FirewallPolicyThreatIntelWhitelist

type FirewallPolicyThreatIntelWhitelist struct {
	Fqdns       *[]string `json:"fqdns,omitempty"`
	IPAddresses *[]string `json:"ipAddresses,omitempty"`
}

type FirewallPolicyTransportSecurity

type FirewallPolicyTransportSecurity struct {
	CertificateAuthority *FirewallPolicyCertificateAuthority `json:"certificateAuthority,omitempty"`
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *FirewallPolicy
}

type IDPSQueryObject

type IDPSQueryObject struct {
	Filters        *[]FilterItems `json:"filters,omitempty"`
	OrderBy        *OrderBy       `json:"orderBy,omitempty"`
	ResultsPerPage *int64         `json:"resultsPerPage,omitempty"`
	Search         *string        `json:"search,omitempty"`
	Skip           *int64         `json:"skip,omitempty"`
}

type ListAllCompleteResult

type ListAllCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []FirewallPolicy
}

type ListAllCustomPager added in v0.20240628.1153531

type ListAllCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListAllCustomPager) NextPageLink() *odata.Link

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]FirewallPolicy
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []FirewallPolicy
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]FirewallPolicy
}

type OrderBy

type OrderBy struct {
	Field *string                           `json:"field,omitempty"`
	Order *FirewallPolicyIDPSQuerySortOrder `json:"order,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type QueryResults

type QueryResults struct {
	MatchingRecordsCount *int64               `json:"matchingRecordsCount,omitempty"`
	Signatures           *[]SingleQueryResult `json:"signatures,omitempty"`
}

type SignatureOverridesFilterValuesQuery

type SignatureOverridesFilterValuesQuery struct {
	FilterName *string `json:"filterName,omitempty"`
}

type SignatureOverridesFilterValuesResponse

type SignatureOverridesFilterValuesResponse struct {
	FilterValues *[]string `json:"filterValues,omitempty"`
}

type SignaturesOverrides

type SignaturesOverrides struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *SignaturesOverridesProperties `json:"properties,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type SignaturesOverridesList

type SignaturesOverridesList struct {
	Value *[]SignaturesOverrides `json:"value,omitempty"`
}

type SignaturesOverridesProperties

type SignaturesOverridesProperties struct {
	Signatures *map[string]string `json:"signatures,omitempty"`
}

type SingleQueryResult

type SingleQueryResult struct {
	Description               *string                               `json:"description,omitempty"`
	DestinationPorts          *[]string                             `json:"destinationPorts,omitempty"`
	Direction                 *FirewallPolicyIDPSSignatureDirection `json:"direction,omitempty"`
	Group                     *string                               `json:"group,omitempty"`
	InheritedFromParentPolicy *bool                                 `json:"inheritedFromParentPolicy,omitempty"`
	LastUpdated               *string                               `json:"lastUpdated,omitempty"`
	Mode                      *FirewallPolicyIDPSSignatureMode      `json:"mode,omitempty"`
	Protocol                  *string                               `json:"protocol,omitempty"`
	Severity                  *FirewallPolicyIDPSSignatureSeverity  `json:"severity,omitempty"`
	SignatureId               *int64                                `json:"signatureId,omitempty"`
	SourcePorts               *[]string                             `json:"sourcePorts,omitempty"`
}

type SubResource

type SubResource struct {
	Id *string `json:"id,omitempty"`
}

type TagsObject

type TagsObject struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type UpdateTagsOperationResponse

type UpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *FirewallPolicy
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL