SecurityCenterExtensions.GetSecurityCenterAssignmentAsync Method

Definition

Get a specific standard assignment for the requested scope by resourceId <item> Mocking. To mock this method, please mock GetSecurityCenterAssignmentAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterAssignmentResource>> GetSecurityCenterAssignmentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string assignmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterAssignmentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterAssignmentResource>>
<Extension()>
Public Function GetSecurityCenterAssignmentAsync (resourceGroupResource As ResourceGroupResource, assignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityCenterAssignmentResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

assignmentId
String

The security assignment key - unique key for the standard assignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to