Поделиться через


HealthModelDiscoveryRuleCollection Class

Definition

A class representing a collection of HealthModelDiscoveryRuleResource and their operations. Each HealthModelDiscoveryRuleResource in the collection will belong to the same instance of HealthModelResource. To get a HealthModelDiscoveryRuleCollection instance call the GetHealthModelDiscoveryRules method from an instance of HealthModelResource.

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

Constructors

HealthModelDiscoveryRuleCollection()

Initializes a new instance of the HealthModelDiscoveryRuleCollection 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, String, HealthModelDiscoveryRuleData, CancellationToken)

Create a DiscoveryRule

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_CreateOrUpdate
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
CreateOrUpdateAsync(WaitUntil, String, HealthModelDiscoveryRuleData, CancellationToken)

Create a DiscoveryRule

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_CreateOrUpdate
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
Get(String, CancellationToken)

Get a DiscoveryRule

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
GetAll(Nullable<DateTimeOffset>, CancellationToken)

List DiscoveryRule resources by HealthModel

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules
  • Operation Id: DiscoveryRule_ListByHealthModel
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
GetAllAsync(Nullable<DateTimeOffset>, CancellationToken)

List DiscoveryRule resources by HealthModel

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules
  • Operation Id: DiscoveryRule_ListByHealthModel
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
GetAsync(String, CancellationToken)

Get a DiscoveryRule

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CloudHealth/healthmodels/{healthModelName}/discoveryrules/{discoveryRuleName}
  • Operation Id: DiscoveryRule_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: HealthModelDiscoveryRuleResource
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<HealthModelDiscoveryRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<HealthModelDiscoveryRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to