ElasticMonitorResource.GetVMHosts(CancellationToken) Method

Definition

List the vm resources currently being monitored by the Elastic monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/listVMHost
  • Operation Id: VMHost_List
  • Default Api Version: 2024-06-15-preview
public virtual Azure.Pageable<Azure.ResourceManager.Elastic.Models.VmResources> GetVMHosts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVMHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.Models.VmResources>
override this.GetVMHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.Models.VmResources>
Public Overridable Function GetVMHosts (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VmResources)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to