共用方式為


SecurityCenterExtensions.GetSoftwareInventories Method

Definition

Overloads

GetSoftwareInventories(SubscriptionResource, CancellationToken)

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
GetSoftwareInventories(ResourceGroupResource, String, String, String)

Gets a collection of SoftwareInventoryResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSoftwareInventories(String, String, String) instead.

GetSoftwareInventories(SubscriptionResource, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

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.Pageable<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource> GetSoftwareInventories (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSoftwareInventories : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.SecurityCenter.SoftwareInventoryResource>
<Extension()>
Public Function GetSoftwareInventories (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SoftwareInventoryResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetSoftwareInventories(ResourceGroupResource, String, String, String)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Gets a collection of SoftwareInventoryResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSoftwareInventories(String, String, String) instead.

public static Azure.ResourceManager.SecurityCenter.SoftwareInventoryCollection GetSoftwareInventories (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceNamespace, string resourceType, string resourceName);
static member GetSoftwareInventories : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string -> Azure.ResourceManager.SecurityCenter.SoftwareInventoryCollection
<Extension()>
Public Function GetSoftwareInventories (resourceGroupResource As ResourceGroupResource, resourceNamespace As String, resourceType As String, resourceName As String) As SoftwareInventoryCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceNamespace
String

The namespace of the resource.

resourceType
String

The type of the resource.

resourceName
String

Name of the resource.

Returns

An object representing collection of SoftwareInventoryResources and their operations over a SoftwareInventoryResource.

Exceptions

resourceGroupResource, resourceNamespace, resourceType or resourceName is null.

resourceNamespace, resourceType or resourceName is an empty string, and was expected to be non-empty.

Applies to