C# Class Microsoft.Azure.Commands.Sql.Auditing.Services.AuditingEndpointsCommunicator

This class is responsible for all the REST communication with the audit REST endpoints
Datei anzeigen Open project: Azure/azure-powershell Class Usage Examples

Private Properties

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

Public Methods

Method Description
AuditingEndpointsCommunicator ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
GetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy &policy ) : void

Gets the database blob auditing policy for the given database in the given database server in the given resource group

GetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseAuditingPolicy &policy ) : void

Gets the database auditing policy for the given database in the given database server in the given resource group

GetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy &policy ) : void

Gets the database server blob auditing policy for the given database server in the given resource group

GetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.ServerAuditingPolicy &policy ) : void

Gets the database server auditing policy for 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

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

Calls the set blob audit APIs for the database auditing policy for the given database in the given database server in the given resource group

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

Calls the set audit APIs for the database auditing policy for the given database in the given database server in the given resource group

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

Sets the database server blob auditing policy of the given database server in the given resource group

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

Sets the database server auditing policy of the given database server in the given resource group

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

AuditingEndpointsCommunicator() public method

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

GetDatabaseAuditingPolicy() public method

Gets the database blob auditing policy for the given database in the given database server in the given resource group
public GetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy &policy ) : void
resourceGroupName string
serverName string
databaseName string
clientRequestId string
policy Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy
return void

GetDatabaseAuditingPolicy() public method

Gets the database auditing policy for the given database in the given database server in the given resource group
public GetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseAuditingPolicy &policy ) : void
resourceGroupName string
serverName string
databaseName string
clientRequestId string
policy Microsoft.Azure.Management.Sql.Models.DatabaseAuditingPolicy
return void

GetServerAuditingPolicy() public method

Gets the database server blob auditing policy for the given database server in the given resource group
public GetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy &policy ) : void
resourceGroupName string
serverName string
clientRequestId string
policy Microsoft.Azure.Management.Sql.Models.BlobAuditingPolicy
return void

GetServerAuditingPolicy() public method

Gets the database server auditing policy for the given database server in the given resource group
public GetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.ServerAuditingPolicy &policy ) : void
resourceGroupName string
serverName string
clientRequestId string
policy Microsoft.Azure.Management.Sql.Models.ServerAuditingPolicy
return void

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

SetDatabaseAuditingPolicy() public method

Calls the set blob audit APIs for the database auditing policy for the given database in the given database server in the given resource group
public SetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
databaseName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.BlobAuditingCreateOrUpdateParameters
return void

SetDatabaseAuditingPolicy() public method

Calls the set audit APIs for the database auditing policy for the given database in the given database server in the given resource group
public SetDatabaseAuditingPolicy ( string resourceGroupName, string serverName, string databaseName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.DatabaseAuditingPolicyCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
databaseName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.DatabaseAuditingPolicyCreateOrUpdateParameters
return void

SetServerAuditingPolicy() public method

Sets the database server blob auditing policy of the given database server in the given resource group
public SetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.BlobAuditingCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.BlobAuditingCreateOrUpdateParameters
return void

SetServerAuditingPolicy() public method

Sets the database server auditing policy of the given database server in the given resource group
public SetServerAuditingPolicy ( string resourceGroupName, string serverName, string clientRequestId, Microsoft.Azure.Management.Sql.Models.ServerAuditingPolicyCreateOrUpdateParameters parameters ) : void
resourceGroupName string
serverName string
clientRequestId string
parameters Microsoft.Azure.Management.Sql.Models.ServerAuditingPolicyCreateOrUpdateParameters
return void