MockableComputeLimitSubscriptionResource.GetTrustedHostSubscriptionAsync 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>> GetTrustedHostSubscriptionAsync(Azure.Core.AzureLocation location, string hostSubscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTrustedHostSubscriptionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>>
override this.GetTrustedHostSubscriptionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>>
Public Overridable Function GetTrustedHostSubscriptionAsync (location As AzureLocation, hostSubscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TrustedHostSubscriptionResource))

Parameters

location
AzureLocation

The location for the resource.

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