Freigeben über


DatadogMonitorResource.GetHostsAsync(CancellationToken) Methode

Definition

Listen Sie die Hosts für eine bestimmte Monitorressource auf.

  • Anforderungspfad/Abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts
  • Vorgangs-IdMonitors_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)

Parameter

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von DatadogHost , die mehrere Dienstanforderungen durchlaufen kann.

Gilt für: