Bagikan melalui


StorageSyncRegisteredServerCollection.ExistsAsync Method

Definition

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}
  • Operation Id: RegisteredServers_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Guid serverId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (serverId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parameters

serverId
Guid

GUID identifying the on-premises server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to