SecurityCenterExtensions.GetSecurityAssessments Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
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
- 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
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
client
is null.