ArmSqlModelFactory.SecurityEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of SecurityEvent.
public static Azure.ResourceManager.Sql.Models.SecurityEvent SecurityEvent (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, DateTimeOffset? eventOn = default, Azure.ResourceManager.Sql.Models.SecurityEventType? securityEventType = default, string subscription = default, string server = default, string database = default, System.Net.IPAddress clientIP = default, string applicationName = default, string principalName = default, Azure.ResourceManager.Sql.Models.SecurityEventSqlInjectionAdditionalProperties securityEventSqlInjectionAdditionalProperties = default);
static member SecurityEvent : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.SecurityEventType> * string * string * string * System.Net.IPAddress * string * string * Azure.ResourceManager.Sql.Models.SecurityEventSqlInjectionAdditionalProperties -> Azure.ResourceManager.Sql.Models.SecurityEvent
Public Shared Function SecurityEvent (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional eventOn As Nullable(Of DateTimeOffset) = Nothing, Optional securityEventType As Nullable(Of SecurityEventType) = Nothing, Optional subscription As String = Nothing, Optional server As String = Nothing, Optional database As String = Nothing, Optional clientIP As IPAddress = Nothing, Optional applicationName As String = Nothing, Optional principalName As String = Nothing, Optional securityEventSqlInjectionAdditionalProperties As SecurityEventSqlInjectionAdditionalProperties = Nothing) As SecurityEvent
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- eventOn
- Nullable<DateTimeOffset>
The time when the security event occurred.
- securityEventType
- Nullable<SecurityEventType>
The type of the security event.
- subscription
- String
The subscription name.
- server
- String
The server name.
- database
- String
The database name.
- clientIP
- IPAddress
The IP address of the client who executed the statement.
- applicationName
- String
The application used to execute the statement.
- principalName
- String
The principal user who executed the statement.
- securityEventSqlInjectionAdditionalProperties
- SecurityEventSqlInjectionAdditionalProperties
The sql injection additional properties, populated only if the type of the security event is sql injection.
Returns
A new SecurityEvent instance for mocking.