Interface ServerSecurityAlertPoliciesClient


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

    • getWithResponse

      com.azure.core.http.rest.Response<ServerSecurityAlertPolicyInner> getWithResponse(String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName, com.azure.core.util.Context context)
      Get a server's security alert policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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 along with Response.
      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, SecurityAlertPolicyName securityAlertPolicyName)
      Get a server's security alert policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerSecurityAlertPolicyInner>,ServerSecurityAlertPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters)
      Creates or updates a threat detection policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      securityAlertPolicyName - The name of the threat detection policy.
      parameters - The server security alert policy.
      Returns:
      the SyncPoller for polling of 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, SecurityAlertPolicyName securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, com.azure.core.util.Context context)
      Creates or updates a threat detection policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      securityAlertPolicyName - The name of the threat detection policy.
      parameters - The server security alert policy.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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, SecurityAlertPolicyName securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters)
      Creates or updates a threat detection policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      securityAlertPolicyName - The name of the threat detection policy.
      parameters - The 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, SecurityAlertPolicyName securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, com.azure.core.util.Context context)
      Creates or updates a threat detection policy.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      securityAlertPolicyName - The name of the threat detection policy.
      parameters - The 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.
    • 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. The name is case insensitive.
      serverName - The name of the server.
      Returns:
      the server's threat detection policies as paginated response with PagedIterable.
      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. The name is case insensitive.
      serverName - The name of the server.
      context - The context to associate with this operation.
      Returns:
      the server's threat detection policies as paginated response with PagedIterable.
      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.