SecurityCenterExtensions.GetByExtendedResourceAsync Method

Definition

Gets a list of server vulnerability assessment onboarding statuses on a given resource. <item> Mocking. To mock this method, please mock GetByExtendedResourceAsync(ResourceIdentifier, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.ServerVulnerabilityAssessmentsList>> GetByExtendedResourceAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member GetByExtendedResourceAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.ServerVulnerabilityAssessmentsList>>
<Extension()>
Public Function GetByExtendedResourceAsync (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServerVulnerabilityAssessmentsList))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to