Interface ServerSecurityAlertPolicies


public interface ServerSecurityAlertPolicies
Resource collection API of ServerSecurityAlertPolicies.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<ServerSecurityAlertPolicy> 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

      ServerSecurityAlertPolicy 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<ServerSecurityAlertPolicy> 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<ServerSecurityAlertPolicy> 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.
    • getById

      Get a server's security alert policy.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<ServerSecurityAlertPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a server's security alert policy.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new ServerSecurityAlertPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ServerSecurityAlertPolicy definition.