次の方法で共有


ElasticMonitorResource.GetVmHostsAsync(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.AsyncPageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo> GetVmHostsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVmHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo>
override this.GetVmHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.Models.ElasticVmResourceInfo>
Public Overridable Function GetVmHostsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ElasticVmResourceInfo)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to