Share via


AssociationCollection.CreateOrUpdate Method

Definition

Create a Association

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}
  • Operation Id: AssociationsInterface_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.AssociationResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string associationName, Azure.ResourceManager.ServiceNetworking.AssociationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.AssociationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.AssociationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.AssociationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.AssociationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, associationName As String, data As AssociationData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of AssociationResource)

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.

associationName
String

Name of Association.

data
AssociationData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

associationName or data is null.

Applies to