Interface DatabaseThreatDetectionPoliciesClient


  • public interface DatabaseThreatDetectionPoliciesClient
    An instance of this class provides access to all the operations defined in DatabaseThreatDetectionPoliciesClient.
    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DatabaseSecurityAlertPolicyInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                                       String serverName,
                                                                                                       String databaseName,
                                                                                                       SecurityAlertPolicyName securityAlertPolicyName)
        Gets a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a database's threat detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<DatabaseSecurityAlertPolicyInner> getAsync​(String resourceGroupName,
                                                        String serverName,
                                                        String databaseName,
                                                        SecurityAlertPolicyName securityAlertPolicyName)
        Gets a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a database's threat detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        DatabaseSecurityAlertPolicyInner get​(String resourceGroupName,
                                             String serverName,
                                             String databaseName,
                                             SecurityAlertPolicyName securityAlertPolicyName)
        Gets a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a database's threat detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<DatabaseSecurityAlertPolicyInner> getWithResponse​(String resourceGroupName,
                                                                                            String serverName,
                                                                                            String databaseName,
                                                                                            SecurityAlertPolicyName securityAlertPolicyName,
                                                                                            com.azure.core.util.Context context)
        Gets a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        context - The context to associate with this operation.
        Returns:
        a database's threat detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DatabaseSecurityAlertPolicyInner>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                                  String serverName,
                                                                                                                  String databaseName,
                                                                                                                  SecurityAlertPolicyName securityAlertPolicyName,
                                                                                                                  DatabaseSecurityAlertPolicyInner parameters)
        Creates or updates a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        parameters - Contains information about a database Threat Detection policy.
        Returns:
        contains information about a database Threat Detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateAsync

        Mono<DatabaseSecurityAlertPolicyInner> createOrUpdateAsync​(String resourceGroupName,
                                                                   String serverName,
                                                                   String databaseName,
                                                                   SecurityAlertPolicyName securityAlertPolicyName,
                                                                   DatabaseSecurityAlertPolicyInner parameters)
        Creates or updates a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        parameters - Contains information about a database Threat Detection policy.
        Returns:
        contains information about a database Threat Detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdate

        DatabaseSecurityAlertPolicyInner createOrUpdate​(String resourceGroupName,
                                                        String serverName,
                                                        String databaseName,
                                                        SecurityAlertPolicyName securityAlertPolicyName,
                                                        DatabaseSecurityAlertPolicyInner parameters)
        Creates or updates a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        parameters - Contains information about a database Threat Detection policy.
        Returns:
        contains information about a database Threat Detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<DatabaseSecurityAlertPolicyInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                                       String serverName,
                                                                                                       String databaseName,
                                                                                                       SecurityAlertPolicyName securityAlertPolicyName,
                                                                                                       DatabaseSecurityAlertPolicyInner parameters,
                                                                                                       com.azure.core.util.Context context)
        Creates or updates a database's threat detection policy.
        Parameters:
        resourceGroupName - 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 - The name of the server.
        databaseName - The name of the database for which database Threat Detection policy is defined.
        securityAlertPolicyName - The name of the security alert policy.
        parameters - Contains information about a database Threat Detection policy.
        context - The context to associate with this operation.
        Returns:
        contains information about a database Threat Detection policy.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.