com.azure.resourcemanager.security.fluent.AlertsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-security Show documentation
Show all versions of azure-resourcemanager-security Show documentation
This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.security.fluent.models.AlertInner;
import com.azure.resourcemanager.security.models.AlertSimulatorRequestBody;
/**
* An instance of this class provides access to all the operations defined in AlertsClient.
*/
public interface AlertsClient {
/**
* List all the alerts that are associated with the subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List all the alerts that are associated with the subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* List all the alerts that are associated with the resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List all the alerts that are associated with the resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* List all the alerts that are associated with the subscription that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSubscriptionLevelByRegion(String ascLocation);
/**
* List all the alerts that are associated with the subscription that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSubscriptionLevelByRegion(String ascLocation, Context context);
/**
* List all the alerts that are associated with the resource group that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName);
/**
* List all the alerts that are associated with the resource group that are stored in a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of security alerts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listResourceGroupLevelByRegion(String ascLocation, String resourceGroupName,
Context context);
/**
* Get an alert that is associated with a subscription.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an alert that is associated with a subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context);
/**
* Get an alert that is associated with a subscription.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an alert that is associated with a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AlertInner getSubscriptionLevel(String ascLocation, String alertName);
/**
* Get an alert that is associated a resource group or a resource in a resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an alert that is associated a resource group or a resource in a resource group along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getResourceGroupLevelWithResponse(String resourceGroupName, String ascLocation,
String alertName, Context context);
/**
* Get an alert that is associated a resource group or a resource in a resource group.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an alert that is associated a resource group or a resource in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToDismissWithResponse(String ascLocation, String alertName,
Context context);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToResolveWithResponse(String ascLocation, String alertName,
Context context);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToActivateWithResponse(String ascLocation, String alertName,
Context context);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateSubscriptionLevelStateToInProgressWithResponse(String ascLocation, String alertName,
Context context);
/**
* Update the alert's state.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToResolveWithResponse(String resourceGroupName, String ascLocation,
String alertName, Context context);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToDismissWithResponse(String resourceGroupName, String ascLocation,
String alertName, Context context);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToActivateWithResponse(String resourceGroupName, String ascLocation,
String alertName, Context context);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateResourceGroupLevelStateToInProgressWithResponse(String resourceGroupName, String ascLocation,
String alertName, Context context);
/**
* Update the alert's state.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName);
/**
* Simulate security alerts.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertSimulatorRequestBody Alert Simulator Request Properties.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginSimulate(String ascLocation,
AlertSimulatorRequestBody alertSimulatorRequestBody);
/**
* Simulate security alerts.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertSimulatorRequestBody Alert Simulator Request Properties.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginSimulate(String ascLocation,
AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
/**
* Simulate security alerts.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertSimulatorRequestBody Alert Simulator Request Properties.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody);
/**
* Simulate security alerts.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertSimulatorRequestBody Alert Simulator Request Properties.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void simulate(String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy