Condividi tramite


StorageSyncServerEndpointCollection.CreateOrUpdate Method

Definition

Create a new ServerEndpoint.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}
  • Operation Id: ServerEndpoints_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string serverEndpointName, Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, serverEndpointName As String, content As StorageSyncServerEndpointCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StorageSyncServerEndpointResource)

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.

serverEndpointName
String

Name of Server Endpoint object.

content
StorageSyncServerEndpointCreateOrUpdateContent

Body of Server Endpoint object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serverEndpointName or content is null.

Applies to