共用方式為


TrafficManagerUserMetricsResource.CreateOrUpdate Method

Definition

Create or update a subscription-level key used for Real User Metrics collection.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
  • Operation Id: TrafficManagerUserMetricsKeys_CreateOrUpdate
  • Default Api Version: 2022-04-01
  • Resource: TrafficManagerUserMetricsResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.TrafficManager.TrafficManagerUserMetricsResource> CreateOrUpdate (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.TrafficManager.TrafficManagerUserMetricsResource>
override this.CreateOrUpdate : Azure.WaitUntil * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.TrafficManager.TrafficManagerUserMetricsResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TrafficManagerUserMetricsResource)

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to