Lingua

TrustedHostSubscriptionCollection.GetAsync(String, CancellationToken) Method

Definition

Gets a host subscription that the guest subscription trusts.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/trustedHostSubscriptions/{hostSubscriptionId}.
  • Operation Id. : TrustedHostSubscriptions_Get.
  • Default Api Version. : 2026-07-31.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>> GetAsync(string hostSubscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>>
Public Overridable Function GetAsync (hostSubscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TrustedHostSubscriptionResource))

Parameters

hostSubscriptionId
String

The name of the TrustedHostSubscription.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

hostSubscriptionId is null.

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

Applies to