Compartilhar via


SecurityCenterExtensions.GetSoftwareInventoryAsync Método

Definição

Obtém um único dado de software da máquina virtual.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}
  • Operação IdSoftwareInventories_Get
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

A ResourceGroupResource instância em que o método será executado.

resourceNamespace
String

O namespace do recurso.

resourceType
String

Tipo do recurso.

resourceName
String

Nome do recurso.

softwareName
String

Nome do software instalado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

resourceNamespace, resourceTypeou resourceNamesoftwareName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

resourceNamespace, resourceType, resourceName ou softwareName é nulo.

Aplica-se a