Share via


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

Parameters

serverId
Guid

GUID identifying the on-premises server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to