Language

ComputeLimitExtensions.GetTrustedHostSubscription Method

Definition

Gets a host subscription that the guest subscription trusts. <item> Mocking. To mock this method, please mock GetTrustedHostSubscription(AzureLocation, String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource> GetTrustedHostSubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string hostSubscriptionId, System.Threading.CancellationToken cancellationToken = default);
static member GetTrustedHostSubscription : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeLimit.TrustedHostSubscriptionResource>
<Extension()>
Public Function GetTrustedHostSubscription (subscriptionResource As SubscriptionResource, location As AzureLocation, hostSubscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TrustedHostSubscriptionResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The location for the resource.

hostSubscriptionId
String

The name of the TrustedHostSubscription.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to