Skip to main content

managed_database_security_events

Creates, updates, deletes, gets or lists a managed_database_security_events resource.

Overview

Namemanaged_database_security_events
TypeResource
Idazure.sql.managed_database_security_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
applicationNamestringThe application used to execute the statement.
clientIpstringThe IP address of the client who executed the statement.
databasestringThe database name.
eventTimestring (date-time)The time when the security event occurred.
principalNamestringThe principal user who executed the statement.
securityEventSqlInjectionAdditionalPropertiesobjectThe sql injection additional properties, populated only if the type of the security event is sql injection.
securityEventTypestringThe type of the security event. Known values are: "Undefined", "SqlInjectionVulnerability", and "SqlInjectionExploit". (Undefined, SqlInjectionVulnerability, SqlInjectionExploit)
serverstringThe server name.
subscriptionstringThe subscription name.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_databaseselectresource_group_name, managed_instance_name, database_name, subscription_id$filter, $skip, $top, $skiptokenGets a list of security events.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
database_namestringThe name of the database. Required.
managed_instance_namestringThe name of the managed instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringAn OData filter expression that filters elements in the collection. Default value is None.
$skipintegerThe number of elements in the collection to skip. Default value is None.
$skiptokenstringAn opaque token that identifies a starting point in the collection. Default value is None.
$topintegerThe number of elements to return from the collection. Default value is None.

SELECT examples

Gets a list of security events.

SELECT
id,
name,
applicationName,
clientIp,
database,
eventTime,
principalName,
securityEventSqlInjectionAdditionalProperties,
securityEventType,
server,
subscription,
systemData,
type
FROM azure.sql.managed_database_security_events
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND managed_instance_name = '{{ managed_instance_name }}' -- required
AND database_name = '{{ database_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
AND $skip = '{{ $skip }}'
AND $top = '{{ $top }}'
AND $skiptoken = '{{ $skiptoken }}'
;