StorageSyncRegisteredServerCollection.CreateOrUpdate Method

Definition

Add a new registered server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}
  • Operation Id: RegisteredServers_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Guid serverId, Azure.ResourceManager.StorageSync.Models.StorageSyncRegisteredServerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Guid * Azure.ResourceManager.StorageSync.Models.StorageSyncRegisteredServerCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource>
override this.CreateOrUpdate : Azure.WaitUntil * Guid * Azure.ResourceManager.StorageSync.Models.StorageSyncRegisteredServerCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, serverId As Guid, content As StorageSyncRegisteredServerCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StorageSyncRegisteredServerResource)

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.

serverId
Guid

GUID identifying the on-premises server.

content
StorageSyncRegisteredServerCreateOrUpdateContent

Body of Registered Server object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to