PublisherCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a publisher.

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

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.

publisherName
String

The name of the publisher.

data
PublisherData

Parameters supplied to the create publisher operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

publisherName or data is null.

Applies to