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

SecurityCenterExtensions.GetSoftwareInventory 方法

定义

获取虚拟机的单个软件数据。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}
  • 操作IdSoftwareInventories_Get
public static Azure.Response<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource> GetSoftwareInventory (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceNamespace, string resourceType, string resourceName, string softwareName, System.Threading.CancellationToken cancellationToken = default);
static member GetSoftwareInventory : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource>
<Extension()>
Public Function GetSoftwareInventory (resourceGroupResource As ResourceGroupResource, resourceNamespace As String, resourceType As String, resourceName As String, softwareName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SoftwareInventoryResource)

参数

resourceGroupResource
ResourceGroupResource

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

resourceNamespace
String

资源的命名空间。

resourceType
String

资源类型。

resourceName
String

资源的名称。

softwareName
String

已安装软件的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

resourceNamespaceresourceTyperesourceNamesoftwareName 是空字符串,预期为非空。

resourceNamespaceresourceTyperesourceNamesoftwareName 为 null。

适用于