MockableSecurityCenterArmClient.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(ResourceIdentifier) |
Gets a collection of SecurityAssessmentResources in the ArmClient. |
GetSecurityAssessments(ResourceIdentifier, CancellationToken) |
Get security assessments on all your scanned resources inside a scope
|
GetSecurityAssessments(ResourceIdentifier)
Gets a collection of SecurityAssessmentResources in the ArmClient.
public virtual Azure.ResourceManager.SecurityCenter.SecurityAssessmentCollection GetSecurityAssessments (Azure.Core.ResourceIdentifier scope);
abstract member GetSecurityAssessments : Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.SecurityAssessmentCollection
override this.GetSecurityAssessments : Azure.Core.ResourceIdentifier -> Azure.ResourceManager.SecurityCenter.SecurityAssessmentCollection
Public Overridable Function GetSecurityAssessments (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.
Applies to
GetSecurityAssessments(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
public virtual Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource> GetSecurityAssessments (Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecurityAssessments : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>
override this.GetSecurityAssessments : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SecurityAssessmentResource>
Public Overridable Function GetSecurityAssessments (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
A collection of SecurityAssessmentResource that may take multiple service requests to iterate over.
Exceptions
scope
is null.
Applies to
Azure SDK for .NET