共用方式為


ElasticExtensions.GetElasticMonitorResources Method

Definition

Overloads

GetElasticMonitorResources(ResourceGroupResource)

Gets a collection of ElasticMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetElasticMonitorResources() instead.

GetElasticMonitorResources(SubscriptionResource, CancellationToken)

List all monitors under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Elastic/monitors
  • Operation Id: Monitors_List
  • Default Api Version: 2024-06-15-preview
  • Resource: ElasticMonitorResource

GetElasticMonitorResources(ResourceGroupResource)

Source:
ElasticExtensions.cs

Gets a collection of ElasticMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetElasticMonitorResources() instead.

public static Azure.ResourceManager.Elastic.ElasticMonitorResourceCollection GetElasticMonitorResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetElasticMonitorResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Elastic.ElasticMonitorResourceCollection
<Extension()>
Public Function GetElasticMonitorResources (resourceGroupResource As ResourceGroupResource) As ElasticMonitorResourceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ElasticMonitorResources and their operations over a ElasticMonitorResource.

Exceptions

resourceGroupResource is null.

Applies to

GetElasticMonitorResources(SubscriptionResource, CancellationToken)

Source:
ElasticExtensions.cs

List all monitors under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Elastic/monitors
  • Operation Id: Monitors_List
  • Default Api Version: 2024-06-15-preview
  • Resource: ElasticMonitorResource
public static Azure.Pageable<Azure.ResourceManager.Elastic.ElasticMonitorResource> GetElasticMonitorResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetElasticMonitorResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
<Extension()>
Public Function GetElasticMonitorResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ElasticMonitorResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ElasticMonitorResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to