ManagedDashboardCollection.CreateOrUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create or update a dashboard for grafana resource. This API is idempotent, so user can either create a new dashboard or update an existing dashboard.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/dashboards/{dashboardName}
- Operation Id: ManagedDashboard_Create
- Default Api Version: 2024-11-01-preview
- Resource: ManagedDashboardResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Grafana.ManagedDashboardResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string dashboardName, Azure.ResourceManager.Grafana.ManagedDashboardData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Grafana.ManagedDashboardData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Grafana.ManagedDashboardResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Grafana.ManagedDashboardData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Grafana.ManagedDashboardResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, dashboardName As String, data As ManagedDashboardData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ManagedDashboardResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- dashboardName
- String
The name of the Azure Managed Dashboard.
- data
- ManagedDashboardData
The ManagedDashboardData to use.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
dashboardName
is an empty string, and was expected to be non-empty.
dashboardName
or data
is null.