SecurityCenterExtensions.GetSecurityCenterPricingAsync Method

Definition

Overloads

Name Description
GetSecurityCenterPricingAsync(SubscriptionResource, String, CancellationToken)

Provides a compatibility shim for the GetSecurityCenterPricingAsync operation preserved from the previous public API surface.

GetSecurityCenterPricingAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id). At the resource level, supported resource types are 'VirtualMachines, VMSS and ARC Machines'. <item> Mocking. To mock this method, please mock GetSecurityCenterPricingAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

GetSecurityCenterPricingAsync(SubscriptionResource, String, CancellationToken)

Source:
SecurityCenterExtensions.cs
Source:
SecurityCenterExtensions.cs

Provides a compatibility shim for the GetSecurityCenterPricingAsync operation preserved from the previous public API surface.

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>> GetSecurityCenterPricingAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string pricingName, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterPricingAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>>
<Extension()>
Public Function GetSecurityCenterPricingAsync (subscriptionResource As SubscriptionResource, pricingName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityCenterPricingResource))

Parameters

subscriptionResource
SubscriptionResource

The value preserved for API compatibility.

pricingName
String

The value preserved for API compatibility.

cancellationToken
CancellationToken

The value preserved for API compatibility.

Returns

The compatibility result.

Exceptions

subscriptionResource or pricingName is null.

pricingName is an empty string, and was expected to be non-empty.

Applies to

GetSecurityCenterPricingAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Source:
SecurityCenterExtensions.cs

Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id). At the resource level, supported resource types are 'VirtualMachines, VMSS and ARC Machines'. <item> Mocking. To mock this method, please mock GetSecurityCenterPricingAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>> GetSecurityCenterPricingAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string pricingName, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterPricingAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>>
<Extension()>
Public Function GetSecurityCenterPricingAsync (client As ArmClient, scope As ResourceIdentifier, pricingName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SecurityCenterPricingResource))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

pricingName
String

name of the pricing configuration.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client is null.

Applies to