다음을 통해 공유


StorageSyncServerEndpointCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string serverEndpointName, Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageSync.StorageSyncServerEndpointResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serverEndpointName As String, content As StorageSyncServerEndpointCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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