Share via


SubscriptionSecurityAlertCollection Class

Definition

A class representing a collection of SubscriptionSecurityAlertResource and their operations. Each SubscriptionSecurityAlertResource in the collection will belong to the same instance of SecurityCenterLocationResource. To get a SubscriptionSecurityAlertCollection instance call the GetSubscriptionSecurityAlerts method from an instance of SecurityCenterLocationResource.

public class SubscriptionSecurityAlertCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityAlertResource>
type SubscriptionSecurityAlertCollection = class
    inherit ArmCollection
    interface seq<SubscriptionSecurityAlertResource>
    interface IEnumerable
    interface IAsyncEnumerable<SubscriptionSecurityAlertResource>
Public Class SubscriptionSecurityAlertCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SubscriptionSecurityAlertResource), IEnumerable(Of SubscriptionSecurityAlertResource)
Inheritance
SubscriptionSecurityAlertCollection
Implements

Constructors

SubscriptionSecurityAlertCollection()

Initializes a new instance of the SubscriptionSecurityAlertCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
Get(String, CancellationToken)

Get an alert that is associated with a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
GetAll(CancellationToken)

List all the alerts that are associated with the subscription that are stored in a specific location

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts
  • Operation Id: Alerts_ListSubscriptionLevelByRegion
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
GetAllAsync(CancellationToken)

List all the alerts that are associated with the subscription that are stored in a specific location

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts
  • Operation Id: Alerts_ListSubscriptionLevelByRegion
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
GetAsync(String, CancellationToken)

Get an alert that is associated with a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}
  • Operation Id: Alerts_GetSubscriptionLevel
  • Default Api Version: 2022-01-01
  • Resource: SubscriptionSecurityAlertResource
Simulate(WaitUntil, SecurityAlertSimulatorContent, CancellationToken)

Simulate security alerts

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate
  • Operation Id: Alerts_Simulate
  • Default Api Version: 2022-01-01
SimulateAsync(WaitUntil, SecurityAlertSimulatorContent, CancellationToken)

Simulate security alerts

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate
  • Operation Id: Alerts_Simulate
  • Default Api Version: 2022-01-01
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<SubscriptionSecurityAlertResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SubscriptionSecurityAlertResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to