DatadogMonitorResource.GetHosts(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.Pageable<Azure.ResourceManager.Datadog.Models.DatadogHost> GetHosts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Datadog.Models.DatadogHost>
override this.GetHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Datadog.Models.DatadogHost>
Public Overridable Function GetHosts (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DatadogHost)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to