SecurityCenterExtensions.GetSecurityCenterPricing Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetSecurityCenterPricing(SubscriptionResource, String, CancellationToken) |
Provides a compatibility shim for the GetSecurityCenterPricing operation preserved from the previous public API surface. |
| GetSecurityCenterPricing(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 GetSecurityCenterPricing(ResourceIdentifier, String, CancellationToken) instead. </item> |
GetSecurityCenterPricing(SubscriptionResource, String, CancellationToken)
- Source:
- SecurityCenterExtensions.cs
- Source:
- SecurityCenterExtensions.cs
Provides a compatibility shim for the GetSecurityCenterPricing operation preserved from the previous public API surface.
public static Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource> GetSecurityCenterPricing(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string pricingName, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterPricing : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
<Extension()>
Public Function GetSecurityCenterPricing (subscriptionResource As SubscriptionResource, pricingName As String, Optional cancellationToken As CancellationToken = Nothing) As 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
GetSecurityCenterPricing(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 GetSecurityCenterPricing(ResourceIdentifier, String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource> GetSecurityCenterPricing(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string pricingName, System.Threading.CancellationToken cancellationToken = default);
static member GetSecurityCenterPricing : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
<Extension()>
Public Function GetSecurityCenterPricing (client As ArmClient, scope As ResourceIdentifier, pricingName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SecurityCenterPricingResource)
Parameters
- 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.