ElasticExtensions.GetElasticMonitors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetElasticMonitors(SubscriptionResource, CancellationToken) |
List all monitors under the specified subscription.
|
GetElasticMonitors(ResourceGroupResource) |
Gets a collection of ElasticMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetElasticMonitors() instead. |
GetElasticMonitors(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-03-01
- Resource: ElasticMonitorResource
public static Azure.Pageable<Azure.ResourceManager.Elastic.ElasticMonitorResource> GetElasticMonitors (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetElasticMonitors : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
<Extension()>
Public Function GetElasticMonitors (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
GetElasticMonitors(ResourceGroupResource)
- Source:
- ElasticExtensions.cs
Gets a collection of ElasticMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetElasticMonitors() instead.
public static Azure.ResourceManager.Elastic.ElasticMonitorCollection GetElasticMonitors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetElasticMonitors : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Elastic.ElasticMonitorCollection
<Extension()>
Public Function GetElasticMonitors (resourceGroupResource As ResourceGroupResource) As ElasticMonitorCollection
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
Azure SDK for .NET