SecurityCenterPricingCollection.GetAllAsync Method

Definition

Overloads

Name Description
GetAllAsync(CancellationToken)

Lists Microsoft Defender for Cloud pricing configurations of the scope.

GetAllAsync(String, CancellationToken)

Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list includes the pricings set for 'planName1' and 'planName2' only.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings.
  • Operation Id. : Pricings_List.
  • Default Api Version. : 2024-01-01.

GetAllAsync(CancellationToken)

Source:
SecurityCenterPricingCollection.cs
Source:
SecurityCenterPricingCollection.cs

Lists Microsoft Defender for Cloud pricing configurations of the scope.

public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource> GetAllAsync(System.Threading.CancellationToken cancellationToken);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityCenterPricingResource)
Public Overridable Function GetAllAsync (cancellationToken As CancellationToken) As AsyncPageable(Of SecurityCenterPricingResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to

GetAllAsync(String, CancellationToken)

Source:
SecurityCenterPricingCollection.cs

Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list includes the pricings set for 'planName1' and 'planName2' only.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings.
  • Operation Id. : Pricings_List.
  • Default Api Version. : 2024-01-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource> GetAllAsync(string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SecurityCenterPricingResource)

Parameters

filter
String

OData filter. Optional.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to