Share via


GrafanaExtensions.GetManagedDashboardsAsync Method

Definition

List all resources of dashboards under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/dashboards
  • Operation Id: ManagedDashboard_ListBySubscription
  • Default Api Version: 2024-11-01-preview
  • Resource: ManagedDashboardResource
<item>MockingTo mock this method, please mock GetManagedDashboards(CancellationToken) instead.</item>
public static Azure.AsyncPageable<Azure.ResourceManager.Grafana.ManagedDashboardResource> GetManagedDashboardsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedDashboardsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Grafana.ManagedDashboardResource>
<Extension()>
Public Function GetManagedDashboardsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedDashboardResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to