Condividi tramite


SecurityCenterExtensions.GetSecurityAssessments Method

Definition

Overloads

GetSecurityAssessments(ArmClient, ResourceIdentifier)

Gets a collection of SecurityAssessmentResources in the ArmClient. MockingTo mock this method, please mock GetSecurityAssessments(ResourceIdentifier) instead.

GetSecurityAssessments(ArmClient, ResourceIdentifier, CancellationToken)

Get security assessments on all your scanned resources inside a scope

  • Request Path: /{scope}/providers/Microsoft.Security/assessments
  • Operation Id: Assessments_List
  • Default Api Version: 2021-06-01
  • Resource: SecurityAssessmentResource

GetSecurityAssessments(ArmClient, ResourceIdentifier)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Gets a collection of SecurityAssessmentResources in the ArmClient. MockingTo mock this method, please mock GetSecurityAssessments(ResourceIdentifier) instead.

public static Azure.ResourceManager.SecurityCenter.SecurityAssessmentCollection GetSecurityAssessments (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope);
static member GetSecurityAssessments : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.SecurityAssessmentCollection
<Extension()>
Public Function GetSecurityAssessments (client As ArmClient, scope As ResourceIdentifier) As SecurityAssessmentCollection

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

Returns

An object representing collection of SecurityAssessmentResources and their operations over a SecurityAssessmentResource.

Exceptions

client is null.

Applies to

GetSecurityAssessments(ArmClient, ResourceIdentifier, CancellationToken)

Source:
SecurityCenterExtensions.cs

Get security assessments on all your scanned resources inside a scope

  • Request Path: /{scope}/providers/Microsoft.Security/assessments
  • Operation Id: Assessments_List
  • Default Api Version: 2021-06-01
  • Resource: SecurityAssessmentResource
public static Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource> GetSecurityAssessments (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityAssessments : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>
<Extension()>
Public Function GetSecurityAssessments (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityAssessmentResource)

Parameters

client
ArmClient

The ArmClient instance 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