Udostępnij przez


VirtualEnclaveTransitHubCollection.GetAsync(String, CancellationToken) Method

Definition

Get a TransitHubResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/communities/{communityName}/transitHubs/{transitHubName}
  • Operation Id: TransitHubResource_Get
  • Default Api Version: 2025-05-01-preview
  • Resource: VirtualEnclaveTransitHubResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource>> GetAsync(string transitHubName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource>>
Public Overridable Function GetAsync (transitHubName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualEnclaveTransitHubResource))

Parameters

transitHubName
String

The name of the TransitHub Resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

transitHubName is an empty string, and was expected to be non-empty.

transitHubName is null.

Applies to