Language

ResilienceManagementExtensions.GetUsagePlan Method

Definition

Get a UsagePlan <item> Mocking. To mock this method, please mock GetUsagePlan(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.ResilienceManagement.UsagePlanResource> GetUsagePlan(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string usagePlanName, System.Threading.CancellationToken cancellationToken = default);
static member GetUsagePlan : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResilienceManagement.UsagePlanResource>
<Extension()>
Public Function GetUsagePlan (resourceGroupResource As ResourceGroupResource, usagePlanName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of UsagePlanResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

usagePlanName
String

The name of the usage plan.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to