Share via


ManagedServerSecurityAlertPolicyCollection Class

Definition

A class representing a collection of ManagedServerSecurityAlertPolicyResource and their operations. Each ManagedServerSecurityAlertPolicyResource in the collection will belong to the same instance of ManagedInstanceResource. To get a ManagedServerSecurityAlertPolicyCollection instance call the GetManagedServerSecurityAlertPolicies method from an instance of ManagedInstanceResource.

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

Constructors

ManagedServerSecurityAlertPolicyCollection()

Initializes a new instance of the ManagedServerSecurityAlertPolicyCollection 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

CreateOrUpdate(WaitUntil, SqlSecurityAlertPolicyName, ManagedServerSecurityAlertPolicyData, CancellationToken)

Creates or updates a threat detection policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
CreateOrUpdateAsync(WaitUntil, SqlSecurityAlertPolicyName, ManagedServerSecurityAlertPolicyData, CancellationToken)

Creates or updates a threat detection policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
Exists(SqlSecurityAlertPolicyName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
ExistsAsync(SqlSecurityAlertPolicyName, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
Get(SqlSecurityAlertPolicyName, CancellationToken)

Get a managed server's threat detection policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
GetAll(CancellationToken)

Get the managed server's threat detection policies.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies
  • Operation Id: ManagedServerSecurityAlertPolicies_ListByInstance
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
GetAllAsync(CancellationToken)

Get the managed server's threat detection policies.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies
  • Operation Id: ManagedServerSecurityAlertPolicies_ListByInstance
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
GetAsync(SqlSecurityAlertPolicyName, CancellationToken)

Get a managed server's threat detection policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
GetIfExists(SqlSecurityAlertPolicyName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
GetIfExistsAsync(SqlSecurityAlertPolicyName, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}
  • Operation Id: ManagedServerSecurityAlertPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedServerSecurityAlertPolicyResource
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<ManagedServerSecurityAlertPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagedServerSecurityAlertPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to