你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SecurityCenterExtensions.GetSecurityAssessments 方法

定义

重载

GetSecurityAssessments(ArmClient, ResourceIdentifier)

获取 ArmResource 中 SecurityAssessmentResources 的集合。

GetSecurityAssessments(ArmClient, ResourceIdentifier, CancellationToken)

获取对范围内所有已扫描资源的安全评估

  • 请求路径/{scope}/providers/Microsoft.Security/assessments
  • 操作IdAssessments_List

GetSecurityAssessments(ArmClient, ResourceIdentifier)

获取 ArmResource 中 SecurityAssessmentResources 的集合。

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

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

返回

一个 对象,表示 SecurityAssessmentResources 的集合及其在 SecurityAssessmentResource 上的操作。

适用于

GetSecurityAssessments(ArmClient, ResourceIdentifier, CancellationToken)

获取对范围内所有已扫描资源的安全评估

  • 请求路径/{scope}/providers/Microsoft.Security/assessments
  • 操作IdAssessments_List
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)

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于