共用方式為


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-03-01
public virtual Azure.Pageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo> GetVmHosts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVmHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo>
override this.GetVmHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo>
Public Overridable Function GetVmHosts (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ElasticVmResourceInfo)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to