EdgeOrderAddressCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string addressName, Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderAddressData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderAddressResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, addressName As String, data As EdgeOrderAddressData, Optional cancellationToken As CancellationToken = Nothing) As 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