manageddatabasesecurityevents

package
v0.20230823.1052657 Latest Latest
Warning

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

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

README

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

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

Client Initialization

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

Example Usage: ManagedDatabaseSecurityEventsClient.ListByDatabase

ctx := context.TODO()
id := manageddatabasesecurityevents.NewManagedInstanceDatabaseID("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

func ValidateManagedInstanceDatabaseID

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

ValidateManagedInstanceDatabaseID checks that 'input' can be parsed as a Managed Instance Database ID

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 ManagedInstanceDatabaseId

type ManagedInstanceDatabaseId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedInstanceName string
	DatabaseName        string
}

ManagedInstanceDatabaseId is a struct representing the Resource ID for a Managed Instance Database

func NewManagedInstanceDatabaseID

func NewManagedInstanceDatabaseID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string) ManagedInstanceDatabaseId

NewManagedInstanceDatabaseID returns a new ManagedInstanceDatabaseId struct

func ParseManagedInstanceDatabaseID

func ParseManagedInstanceDatabaseID(input string) (*ManagedInstanceDatabaseId, error)

ParseManagedInstanceDatabaseID parses 'input' into a ManagedInstanceDatabaseId

func ParseManagedInstanceDatabaseIDInsensitively

func ParseManagedInstanceDatabaseIDInsensitively(input string) (*ManagedInstanceDatabaseId, error)

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

func (ManagedInstanceDatabaseId) ID

ID returns the formatted Managed Instance Database ID

func (ManagedInstanceDatabaseId) Segments

Segments returns a slice of Resource ID Segments which comprise this Managed Instance Database ID

func (ManagedInstanceDatabaseId) String

func (id ManagedInstanceDatabaseId) String() string

String returns a human-readable description of this Managed Instance Database ID

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