ResilienceManagementExtensions.GetGoalTemplate Method

Definition

Get a GoalTemplate <item> Mocking. To mock this method, please mock GetGoalTemplate(ResourceIdentifier, String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalTemplateResource> GetGoalTemplate(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string goalTemplateName, System.Threading.CancellationToken cancellationToken = default);
static member GetGoalTemplate : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalTemplateResource>
<Extension()>
Public Function GetGoalTemplate (client As ArmClient, scope As ResourceIdentifier, goalTemplateName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GoalTemplateResource)

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

goalTemplateName
String

The name of the goalTemplate.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to