Share via


GrafanaExtensions.GetManagedDashboardAsync Method

Definition

Get the properties of a specific dashboard for grafana resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/dashboards/{dashboardName}
  • Operation Id: ManagedDashboard_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ManagedDashboardResource
<item>MockingTo mock this method, please mock GetManagedDashboardAsync(String, CancellationToken) instead.</item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Grafana.ManagedDashboardResource>> GetManagedDashboardAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dashboardName, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedDashboardAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Grafana.ManagedDashboardResource>>
<Extension()>
Public Function GetManagedDashboardAsync (resourceGroupResource As ResourceGroupResource, dashboardName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedDashboardResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

dashboardName
String

The name of the Azure Managed Dashboard.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or dashboardName is null.

dashboardName is an empty string, and was expected to be non-empty.

Applies to