Freigeben über


SecurityCenterExtensions.GetSoftwareInventoryAsync Methode

Definition

Ruft eine einzelne Softwaredaten des virtuellen Computers ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}
  • Vorgang 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))

Parameter

resourceGroupResource
ResourceGroupResource

Der ResourceGroupResource instance, für den die Methode ausgeführt wird.

resourceNamespace
String

Der Namespace der Ressource.

resourceType
String

Der Typ der Ressource.

resourceName
String

Der Name der Ressource.

softwareName
String

Name der installierten Software.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

resourceNamespace, resourceTypeoder resourceNamesoftwareName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

resourceNamespace, resourceType, resourceName oder softwareName ist NULL.

Gilt für: