Interface AlertsClient
public interface AlertsClient
An instance of this class provides access to all the operations defined in AlertsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginSimulate
(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody) Simulate security alerts.beginSimulate
(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, com.azure.core.util.Context context) Simulate security alerts.getResourceGroupLevel
(String resourceGroupName, String ascLocation, String alertName) Get an alert that is associated a resource group or a resource in a resource group.com.azure.core.http.rest.Response<AlertInner>
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.getSubscriptionLevel
(String ascLocation, String alertName) Get an alert that is associated with a subscription.com.azure.core.http.rest.Response<AlertInner>
getSubscriptionLevelWithResponse
(String ascLocation, String alertName, com.azure.core.util.Context context) Get an alert that is associated with a subscription.com.azure.core.http.rest.PagedIterable<AlertInner>
list()
List all the alerts that are associated with the subscription.com.azure.core.http.rest.PagedIterable<AlertInner>
list
(com.azure.core.util.Context context) List all the alerts that are associated with the subscription.com.azure.core.http.rest.PagedIterable<AlertInner>
listByResourceGroup
(String resourceGroupName) List all the alerts that are associated with the resource group.com.azure.core.http.rest.PagedIterable<AlertInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List all the alerts that are associated with the resource group.com.azure.core.http.rest.PagedIterable<AlertInner>
listResourceGroupLevelByRegion
(String ascLocation, String resourceGroupName) List all the alerts that are associated with the resource group that are stored in a specific location.com.azure.core.http.rest.PagedIterable<AlertInner>
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.com.azure.core.http.rest.PagedIterable<AlertInner>
listSubscriptionLevelByRegion
(String ascLocation) List all the alerts that are associated with the subscription that are stored in a specific location.com.azure.core.http.rest.PagedIterable<AlertInner>
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.void
simulate
(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody) Simulate security alerts.void
simulate
(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, com.azure.core.util.Context context) Simulate security alerts.void
updateResourceGroupLevelStateToActivate
(String resourceGroupName, String ascLocation, String alertName) Update the alert's state.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.void
updateResourceGroupLevelStateToDismiss
(String resourceGroupName, String ascLocation, String alertName) Update the alert's state.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.void
updateResourceGroupLevelStateToInProgress
(String resourceGroupName, String ascLocation, String alertName) Update the alert's state.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.void
updateResourceGroupLevelStateToResolve
(String resourceGroupName, String ascLocation, String alertName) Update the alert's state.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.void
updateSubscriptionLevelStateToActivate
(String ascLocation, String alertName) Update the alert's state.com.azure.core.http.rest.Response<Void>
updateSubscriptionLevelStateToActivateWithResponse
(String ascLocation, String alertName, com.azure.core.util.Context context) Update the alert's state.void
updateSubscriptionLevelStateToDismiss
(String ascLocation, String alertName) Update the alert's state.com.azure.core.http.rest.Response<Void>
updateSubscriptionLevelStateToDismissWithResponse
(String ascLocation, String alertName, com.azure.core.util.Context context) Update the alert's state.void
updateSubscriptionLevelStateToInProgress
(String ascLocation, String alertName) Update the alert's state.com.azure.core.http.rest.Response<Void>
updateSubscriptionLevelStateToInProgressWithResponse
(String ascLocation, String alertName, com.azure.core.util.Context context) Update the alert's state.void
updateSubscriptionLevelStateToResolve
(String ascLocation, String alertName) Update the alert's state.com.azure.core.http.rest.Response<Void>
updateSubscriptionLevelStateToResolveWithResponse
(String ascLocation, String alertName, com.azure.core.util.Context context) Update the alert's state.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AlertInner> 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
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
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<AlertInner> 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<AlertInner> 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<AlertInner> 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<AlertInner> 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<AlertInner> 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
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<AlertInner> 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
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<AlertInner> 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
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
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
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
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.
-
beginSimulate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginSimulate(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginSimulate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginSimulate(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
simulate
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.
-