Interface ServerSecurityAlertPoliciesClient


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

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ServerSecurityAlertPolicyInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                                     String serverName,
                                                                                                     SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName)
        Get a server's security alert 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.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a server's security alert 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<ServerSecurityAlertPolicyInner> getAsync​(String resourceGroupName,
                                                      String serverName,
                                                      SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName)
        Get a server's security alert 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.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a server's security alert 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

        ServerSecurityAlertPolicyInner get​(String resourceGroupName,
                                           String serverName,
                                           SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName)
        Get a server's security alert 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.
        securityAlertPolicyName - The name of the security alert policy.
        Returns:
        a server's security alert 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<ServerSecurityAlertPolicyInner> getWithResponse​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                                          com.azure.core.util.Context context)
        Get a server's security alert 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.
        securityAlertPolicyName - The name of the security alert policy.
        context - The context to associate with this operation.
        Returns:
        a server's security alert 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<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                  String serverName,
                                                                                                  SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                                                  ServerSecurityAlertPolicyInner parameters)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        Returns:
        a server security alert 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.
      • beginCreateOrUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerSecurityAlertPolicyInner>,​ServerSecurityAlertPolicyInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                                                           String serverName,
                                                                                                                                                                                           SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                                                                                                                                           ServerSecurityAlertPolicyInner parameters)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        Returns:
        a server security alert 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerSecurityAlertPolicyInner>,​ServerSecurityAlertPolicyInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                      String serverName,
                                                                                                                                                                                      SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                                                                                                                                      ServerSecurityAlertPolicyInner parameters)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        Returns:
        a server security alert 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerSecurityAlertPolicyInner>,​ServerSecurityAlertPolicyInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                                                      String serverName,
                                                                                                                                                                                      SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                                                                                                                                      ServerSecurityAlertPolicyInner parameters,
                                                                                                                                                                                      com.azure.core.util.Context context)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        context - The context to associate with this operation.
        Returns:
        a server security alert 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<ServerSecurityAlertPolicyInner> createOrUpdateAsync​(String resourceGroupName,
                                                                 String serverName,
                                                                 SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                                 ServerSecurityAlertPolicyInner parameters)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        Returns:
        a server security alert 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

        ServerSecurityAlertPolicyInner createOrUpdate​(String resourceGroupName,
                                                      String serverName,
                                                      SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                      ServerSecurityAlertPolicyInner parameters)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        Returns:
        a server security alert 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

        ServerSecurityAlertPolicyInner createOrUpdate​(String resourceGroupName,
                                                      String serverName,
                                                      SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName,
                                                      ServerSecurityAlertPolicyInner parameters,
                                                      com.azure.core.util.Context context)
        Creates or updates a 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.
        securityAlertPolicyName - The name of the threat detection policy.
        parameters - A server security alert policy.
        context - The context to associate with this operation.
        Returns:
        a server security alert 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.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<ServerSecurityAlertPolicyInner> listByServerAsync​(String resourceGroupName,
                                                                                             String serverName)
        Get the server's threat detection policies.
        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.
        Returns:
        the server's threat detection policies.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicyInner> listByServer​(String resourceGroupName,
                                                                                            String serverName)
        Get the server's threat detection policies.
        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.
        Returns:
        the server's threat detection policies.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicyInner> listByServer​(String resourceGroupName,
                                                                                            String serverName,
                                                                                            com.azure.core.util.Context context)
        Get the server's threat detection policies.
        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.
        context - The context to associate with this operation.
        Returns:
        the server's threat detection policies.
        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.