Share via


DatadogMonitorResource.GetHostsAsync(CancellationToken) Method

Definition

List the hosts for a given monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts
  • Operation Id: Monitors_ListHosts
public virtual Azure.AsyncPageable<Azure.ResourceManager.Datadog.Models.DatadogHost> GetHostsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Datadog.Models.DatadogHost>
override this.GetHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Datadog.Models.DatadogHost>
Public Overridable Function GetHostsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DatadogHost)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to