Поделиться через


TrafficControllerFrontendCollection.CreateOrUpdateAsync Method

Definition

Create a Frontend

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}
  • Operation Id: Frontend_CreateOrUpdate
  • Default Api Version: 2025-01-01
  • Resource: TrafficControllerFrontendResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string frontendName, Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerFrontendResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, frontendName As String, data As TrafficControllerFrontendData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TrafficControllerFrontendResource))

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.

frontendName
String

Frontends.

data
TrafficControllerFrontendData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

frontendName or data is null.

Applies to