C# Class Microsoft.Azure.Commands.Sql.ThreatDetection.Services.ThreatDetectionEndpointsCommunicator

This class is responsible for all the REST communication with the security alert REST endpoints
ファイルを表示 Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description
GetCurrentSqlClient Microsoft.Azure.Management.Sql.SqlManagementClient

Public Methods

Method Description
GetDatabaseSecurityAlertPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicy

Gets the database security alert policy for the given database in the given database server in the given resource group

GetServerCreateOrUpdateOperationStatus ( string operationStatusLink, string clientRequestId ) : OperationStatus

Returns the operation status of a server create or update operation

GetServerSecurityAlertPolicy ( string resourceGroupName, string serverName, string clientRequestId ) : Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicy

Gets the server security alert policy for the given server in the given resource group

SetDatabaseSecurityAlertPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicyCreateOrUpdateParameters parameters ) : void

Calls the set security alert APIs for the database security alert policy for the given database in the given database server in the given resource group

SetServerSecurityAlertPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicyCreateOrUpdateParameters parameters ) : void

Calls the set security alert APIs for the server security alert policy in the given resource group

ThreatDetectionEndpointsCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication

Private Methods

Method Description
GetCurrentSqlClient ( String clientRequestId ) : Microsoft.Azure.Management.Sql.SqlManagementClient

Retrieve the SQL Management client for the currently selected subscription, adding the session and request id tracing headers for the current cmdlet invocation.

Method Details

GetDatabaseSecurityAlertPolicy() public method

Gets the database security alert policy for the given database in the given database server in the given resource group
public GetDatabaseSecurityAlertPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId ) : Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicy
resourceGroupName string
serverName string
databaseName string
clientRequestId string
return Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicy

GetServerCreateOrUpdateOperationStatus() public method

Returns the operation status of a server create or update operation
public GetServerCreateOrUpdateOperationStatus ( string operationStatusLink, string clientRequestId ) : OperationStatus
operationStatusLink string
clientRequestId string
return OperationStatus

GetServerSecurityAlertPolicy() public method

Gets the server security alert policy for the given server in the given resource group
public GetServerSecurityAlertPolicy ( string resourceGroupName, string serverName, string clientRequestId ) : Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicy
resourceGroupName string
serverName string
clientRequestId string
return Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicy

SetDatabaseSecurityAlertPolicy() public method

Calls the set security alert APIs for the database security alert policy for the given database in the given database server in the given resource group
public SetDatabaseSecurityAlertPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicyCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
databaseName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.DatabaseSecurityAlertPolicyCreateOrUpdateParameters
return void

SetServerSecurityAlertPolicy() public method

Calls the set security alert APIs for the server security alert policy in the given resource group
public SetServerSecurityAlertPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicyCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.ServerSecurityAlertPolicyCreateOrUpdateParameters
return void

ThreatDetectionEndpointsCommunicator() public method

public ThreatDetectionEndpointsCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication