共用方式為


ManagedDatabaseSecurityAlertPolicyCollection Class

Definition

A class representing a collection of ManagedDatabaseSecurityAlertPolicyResource and their operations. Each ManagedDatabaseSecurityAlertPolicyResource in the collection will belong to the same instance of ManagedDatabaseResource. To get a ManagedDatabaseSecurityAlertPolicyCollection instance call the GetManagedDatabaseSecurityAlertPolicies method from an instance of ManagedDatabaseResource.

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

Constructors

ManagedDatabaseSecurityAlertPolicyCollection()

Initializes a new instance of the ManagedDatabaseSecurityAlertPolicyCollection 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, ManagedDatabaseSecurityAlertPolicyData, CancellationToken)

Creates or updates a database's security alert policy.

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

Creates or updates a database's security alert policy.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

Gets a managed database's security alert policy.

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

Gets a list of managed database's security alert policies.

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

Gets a list of managed database's security alert policies.

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

Gets a managed database's security alert policy.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagedDatabaseSecurityAlertPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to