Compartir a través de


SecurityCenterExtensions.GetSoftwareInventoryAsync Método

Definición

Obtiene un único dato de software de la máquina virtual.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}
  • IdSoftwareInventories_Get de operaciones
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource>> GetSoftwareInventoryAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceNamespace, string resourceType, string resourceName, string softwareName, System.Threading.CancellationToken cancellationToken = default);
static member GetSoftwareInventoryAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource>>
<Extension()>
Public Function GetSoftwareInventoryAsync (resourceGroupResource As ResourceGroupResource, resourceNamespace As String, resourceType As String, resourceName As String, softwareName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SoftwareInventoryResource))

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

resourceNamespace
String

Espacio de nombres del recurso.

resourceType
String

Tipo de recurso.

resourceName
String

Nombre del recurso.

softwareName
String

Nombre del software instalado.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

resourceNamespace, resourceTyperesourceName o softwareName es una cadena vacía y se espera que no esté vacía.

resourceNamespace, resourceType, resourceName o softwareName es un valor null.

Se aplica a