DatabaseSecurityAlertPolicies interface

Interface representing a DatabaseSecurityAlertPolicies.

Methods

createOrUpdate(string, string, string, string, DatabaseSecurityAlertPolicy, DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams)

Creates or updates a database's security alert policy.

get(string, string, string, string, DatabaseSecurityAlertPoliciesGetOptionalParams)

Gets a database's security alert policy.

listByDatabase(string, string, string, DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams)

Gets a list of database's security alert policies.

Method Details

createOrUpdate(string, string, string, string, DatabaseSecurityAlertPolicy, DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams)

Creates or updates a database's security alert policy.

function createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, securityAlertPolicyName: string, parameters: DatabaseSecurityAlertPolicy, options?: DatabaseSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<DatabaseSecurityAlertPolicy>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database for which the security alert policy is defined.

securityAlertPolicyName

string

The name of the security alert policy.

parameters
DatabaseSecurityAlertPolicy

The database security alert policy.

Returns

get(string, string, string, string, DatabaseSecurityAlertPoliciesGetOptionalParams)

Gets a database's security alert policy.

function get(resourceGroupName: string, serverName: string, databaseName: string, securityAlertPolicyName: string, options?: DatabaseSecurityAlertPoliciesGetOptionalParams): Promise<DatabaseSecurityAlertPolicy>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database for which the security alert policy is defined.

securityAlertPolicyName

string

The name of the security alert policy.

options
DatabaseSecurityAlertPoliciesGetOptionalParams

The options parameters.

Returns

listByDatabase(string, string, string, DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams)

Gets a list of database's security alert policies.

function listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabaseSecurityAlertPoliciesListByDatabaseOptionalParams): PagedAsyncIterableIterator<DatabaseSecurityAlertPolicy, DatabaseSecurityAlertPolicy[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName

string

The name of the server.

databaseName

string

The name of the database for which the security alert policy is defined.

Returns