Sdílet prostřednictvím


FrontDoorOriginCollection.CreateOrUpdate Method

Definition

Creates a new origin within the specified origin group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}
  • Operation Id: FrontDoorOrigins_Create
  • Default Api Version: 2024-02-01
  • Resource: FrontDoorOriginResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorOriginResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string originName, Azure.ResourceManager.Cdn.FrontDoorOriginData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorOriginData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorOriginResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorOriginData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorOriginResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, originName As String, data As FrontDoorOriginData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of FrontDoorOriginResource)

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.

originName
String

Name of the origin that is unique within the profile.

data
FrontDoorOriginData

Origin properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

originName or data is null.

Applies to