Interface Alerts


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

    • list

      com.azure.core.http.rest.PagedIterable<Alert> list()
      List all the alerts that are associated with the subscription.
      Returns:
      list of security alerts as paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<Alert> list(com.azure.core.util.Context context)
      List all the alerts that are associated with the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of security alerts 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Alert> listByResourceGroup(String resourceGroupName)
      List all the alerts that are associated with the resource group.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      Returns:
      list of security alerts 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Alert> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List all the alerts that are associated with the resource group.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      list of security alerts 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.
    • listSubscriptionLevelByRegion

      com.azure.core.http.rest.PagedIterable<Alert> listSubscriptionLevelByRegion(String ascLocation)
      List all the alerts that are associated with the subscription that are stored in a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      list of security alerts 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.
    • listSubscriptionLevelByRegion

      com.azure.core.http.rest.PagedIterable<Alert> listSubscriptionLevelByRegion(String ascLocation, com.azure.core.util.Context context)
      List all the alerts that are associated with the subscription that are stored in a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      context - The context to associate with this operation.
      Returns:
      list of security alerts 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.
    • listResourceGroupLevelByRegion

      com.azure.core.http.rest.PagedIterable<Alert> listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName)
      List all the alerts that are associated with the resource group that are stored in a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      Returns:
      list of security alerts 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.
    • listResourceGroupLevelByRegion

      com.azure.core.http.rest.PagedIterable<Alert> listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName, com.azure.core.util.Context context)
      List all the alerts that are associated with the resource group that are stored in a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      list of security alerts 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.
    • getSubscriptionLevel

      Alert getSubscriptionLevel(String ascLocation, String alertName)
      Get an alert that is associated with a subscription.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      Returns:
      an alert that is associated with a subscription.
      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.
    • getSubscriptionLevelWithResponse

      com.azure.core.http.rest.Response<Alert> getSubscriptionLevelWithResponse(String ascLocation, String alertName, com.azure.core.util.Context context)
      Get an alert that is associated with a subscription.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      an alert that is associated with a subscription 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.
    • getResourceGroupLevel

      Alert getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName)
      Get an alert that is associated a resource group or a resource in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      Returns:
      an alert that is associated a resource group or a resource in a resource group.
      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.
    • getResourceGroupLevelWithResponse

      com.azure.core.http.rest.Response<Alert> getResourceGroupLevelWithResponse(String resourceGroupName, String ascLocation, String alertName, com.azure.core.util.Context context)
      Get an alert that is associated a resource group or a resource in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      an alert that is associated a resource group or a resource in a resource group 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.
    • updateSubscriptionLevelStateToDismiss

      void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateSubscriptionLevelStateToDismissWithResponse

      com.azure.core.http.rest.Response<Void> updateSubscriptionLevelStateToDismissWithResponse(String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateSubscriptionLevelStateToResolve

      void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateSubscriptionLevelStateToResolveWithResponse

      com.azure.core.http.rest.Response<Void> updateSubscriptionLevelStateToResolveWithResponse(String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateSubscriptionLevelStateToActivate

      void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateSubscriptionLevelStateToActivateWithResponse

      com.azure.core.http.rest.Response<Void> updateSubscriptionLevelStateToActivateWithResponse(String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateSubscriptionLevelStateToInProgress

      void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateSubscriptionLevelStateToInProgressWithResponse

      com.azure.core.http.rest.Response<Void> updateSubscriptionLevelStateToInProgressWithResponse(String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateResourceGroupLevelStateToResolve

      void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateResourceGroupLevelStateToResolveWithResponse

      com.azure.core.http.rest.Response<Void> updateResourceGroupLevelStateToResolveWithResponse(String resourceGroupName, String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateResourceGroupLevelStateToDismiss

      void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateResourceGroupLevelStateToDismissWithResponse

      com.azure.core.http.rest.Response<Void> updateResourceGroupLevelStateToDismissWithResponse(String resourceGroupName, String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateResourceGroupLevelStateToActivate

      void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateResourceGroupLevelStateToActivateWithResponse

      com.azure.core.http.rest.Response<Void> updateResourceGroupLevelStateToActivateWithResponse(String resourceGroupName, String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • updateResourceGroupLevelStateToInProgress

      void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      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.
    • updateResourceGroupLevelStateToInProgressWithResponse

      com.azure.core.http.rest.Response<Void> updateResourceGroupLevelStateToInProgressWithResponse(String resourceGroupName, String ascLocation, String alertName, com.azure.core.util.Context context)
      Update the alert's state.
      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertName - Name of the alert object.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • simulate

      void simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody)
      Simulate security alerts.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertSimulatorRequestBody - Alert Simulator Request Properties.
      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.
    • simulate

      void simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, com.azure.core.util.Context context)
      Simulate security alerts.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      alertSimulatorRequestBody - Alert Simulator Request Properties.
      context - The context to associate with this operation.
      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.