MockableResilienceManagementArmClient.GetGoalAssignmentAsync Method

Definition

Get a GoalAssignment.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource>> GetGoalAssignmentAsync(Azure.Core.ResourceIdentifier scope, string goalAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGoalAssignmentAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource>>
override this.GetGoalAssignmentAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource>>
Public Overridable Function GetGoalAssignmentAsync (scope As ResourceIdentifier, goalAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GoalAssignmentResource))

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

goalAssignmentName
String

The name of the GoalAssignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

goalAssignmentName is null.

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

Applies to