manageddatabasesecurityevents

package
v0.20231212.1202820 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2021-11-01/manageddatabasesecurityevents Documentation

The manageddatabasesecurityevents SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-11-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/sql/2021-11-01/manageddatabasesecurityevents"

Client Initialization

client := manageddatabasesecurityevents.NewManagedDatabaseSecurityEventsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedDatabaseSecurityEventsClient.ListByDatabase

ctx := context.TODO()
id := manageddatabasesecurityevents.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSecurityEventType

func PossibleValuesForSecurityEventType() []string

Types

type ListByDatabaseCompleteResult

type ListByDatabaseCompleteResult struct {
	Items []SecurityEvent
}

type ListByDatabaseOperationOptions

type ListByDatabaseOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultListByDatabaseOperationOptions

func DefaultListByDatabaseOperationOptions() ListByDatabaseOperationOptions

func (ListByDatabaseOperationOptions) ToHeaders

func (ListByDatabaseOperationOptions) ToOData

func (ListByDatabaseOperationOptions) ToQuery

type ListByDatabaseOperationResponse

type ListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SecurityEvent
}

type ManagedDatabaseSecurityEventsClient

type ManagedDatabaseSecurityEventsClient struct {
	Client *resourcemanager.Client
}

func NewManagedDatabaseSecurityEventsClientWithBaseURI

func NewManagedDatabaseSecurityEventsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedDatabaseSecurityEventsClient, error)

func (ManagedDatabaseSecurityEventsClient) ListByDatabase

ListByDatabase ...

func (ManagedDatabaseSecurityEventsClient) ListByDatabaseComplete

ListByDatabaseComplete retrieves all the results into a single object

func (ManagedDatabaseSecurityEventsClient) ListByDatabaseCompleteMatchingPredicate

ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

type SecurityEvent

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

type SecurityEventOperationPredicate

type SecurityEventOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SecurityEventOperationPredicate) Matches

type SecurityEventProperties

type SecurityEventProperties struct {
	ApplicationName                               *string                                        `json:"applicationName,omitempty"`
	ClientIP                                      *string                                        `json:"clientIp,omitempty"`
	Database                                      *string                                        `json:"database,omitempty"`
	EventTime                                     *string                                        `json:"eventTime,omitempty"`
	PrincipalName                                 *string                                        `json:"principalName,omitempty"`
	SecurityEventSqlInjectionAdditionalProperties *SecurityEventSqlInjectionAdditionalProperties `json:"securityEventSqlInjectionAdditionalProperties,omitempty"`
	SecurityEventType                             *SecurityEventType                             `json:"securityEventType,omitempty"`
	Server                                        *string                                        `json:"server,omitempty"`
	Subscription                                  *string                                        `json:"subscription,omitempty"`
}

func (*SecurityEventProperties) GetEventTimeAsTime

func (o *SecurityEventProperties) GetEventTimeAsTime() (*time.Time, error)

func (*SecurityEventProperties) SetEventTimeAsTime

func (o *SecurityEventProperties) SetEventTimeAsTime(input time.Time)

type SecurityEventSqlInjectionAdditionalProperties

type SecurityEventSqlInjectionAdditionalProperties struct {
	ErrorCode                *int64  `json:"errorCode,omitempty"`
	ErrorMessage             *string `json:"errorMessage,omitempty"`
	ErrorSeverity            *int64  `json:"errorSeverity,omitempty"`
	Statement                *string `json:"statement,omitempty"`
	StatementHighlightLength *int64  `json:"statementHighlightLength,omitempty"`
	StatementHighlightOffset *int64  `json:"statementHighlightOffset,omitempty"`
	ThreatId                 *string `json:"threatId,omitempty"`
}

type SecurityEventType

type SecurityEventType string
const (
	SecurityEventTypeSqlInjectionExploit       SecurityEventType = "SqlInjectionExploit"
	SecurityEventTypeSqlInjectionVulnerability SecurityEventType = "SqlInjectionVulnerability"
	SecurityEventTypeUndefined                 SecurityEventType = "Undefined"
)

func (*SecurityEventType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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