共用方式為


StorageSyncRegisteredServerCollection.GetAsync Method

Definition

Get a given registered server.

  • 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<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource>> GetAsync (Guid serverId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource>>
override this.GetAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerResource>>
Public Overridable Function GetAsync (serverId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StorageSyncRegisteredServerResource))

Parameters

serverId
Guid

GUID identifying the on-premises server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to