Dela via


PublisherCollection.CreateOrUpdate Method

Definition

Creates or updates a publisher.

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