SecurityCenterExtensions.GetSoftwareInventoriesAsync Method

Definition

Gets the software inventory of all virtual machines in the subscriptions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/softwareInventories
  • Operation Id: SoftwareInventories_ListBySubscription
  • Default Api Version: 2021-05-01-preview
  • Resource: SoftwareInventoryResource
public static Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource> GetSoftwareInventoriesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSoftwareInventoriesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource>
<Extension()>
Public Function GetSoftwareInventoriesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SoftwareInventoryResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of SoftwareInventoryResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to