Udostępnij za pośrednictwem


StorageSyncRegisteredServerCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

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

Parameters

serverId
Guid

GUID identifying the on-premises server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to