MockableResilienceManagementArmClient.GetGoalAssignment Method

Definition

Get a GoalAssignment.

public virtual Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource> GetGoalAssignment(Azure.Core.ResourceIdentifier scope, string goalAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGoalAssignment : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource>
override this.GetGoalAssignment : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ResilienceManagement.GoalAssignmentResource>
Public Overridable Function GetGoalAssignment (scope As ResourceIdentifier, goalAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As 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