EdgeOrderAddressCollection.CreateOrUpdateAsync Method

Definition

Creates a new address with the specified parameters. Existing address can be updated with this API

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}
  • Operation Id: CreateAddress
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string addressName, Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, addressName As String, data As EdgeOrderAddressData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of EdgeOrderAddressResource))

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.

addressName
String

The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.

data
EdgeOrderAddressData

Address details from request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

addressName or data is null.

Applies to