Partager via


SecurityCenterExtensions.GetSoftwareInventoryAsync Méthode

Définition

Obtient une seule donnée logicielle de la machine virtuelle.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}
  • IdSoftwareInventories_Get d’opération
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))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

resourceNamespace
String

Espace de noms de la ressource.

resourceType
String

Type de la ressource.

resourceName
String

Nom de la ressource.

softwareName
String

Nom du logiciel installé.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

resourceNamespace, resourceTyperesourceName ou softwareName est une chaîne vide, et était censé être non vide.

resourceNamespace, resourceType, resourceName ou softwareName a la valeur Null.

S’applique à