Pricings Interface

public interface Pricings

Resource collection API of Pricings.

Method Summary

Modifier and Type Method and Description
abstract void deleteByResourceGroup(String scopeId, String pricingName)

Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource.

abstract Response<Void> deleteByResourceGroupWithResponse(String scopeId, String pricingName, Context context)

Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource.

abstract Pricing get(String scopeId, String pricingName)

Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id).

abstract Response<Pricing> getWithResponse(String scopeId, String pricingName, Context context)

Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id).

abstract PricingList list(String scopeId)

Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter.

abstract Response<PricingList> listWithResponse(String scopeId, String filter, Context context)

Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter.

abstract Pricing update(String scopeId, String pricingName, PricingInner pricing)

Updates a provided Microsoft Defender for Cloud pricing configuration in the scope.

abstract Response<Pricing> updateWithResponse(String scopeId, String pricingName, PricingInner pricing, Context context)

Updates a provided Microsoft Defender for Cloud pricing configuration in the scope.

Method Details

deleteByResourceGroup

public abstract void deleteByResourceGroup(String scopeId, String pricingName)

Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource. Valid only for resource scope (Supported resources are: 'VirtualMachines, VMSS and ARC MachinesS').

Parameters:

scopeId - The identifier of the resource, (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}).
pricingName - name of the pricing configuration.

deleteByResourceGroupWithResponse

public abstract Response deleteByResourceGroupWithResponse(String scopeId, String pricingName, Context context)

Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource. Valid only for resource scope (Supported resources are: 'VirtualMachines, VMSS and ARC MachinesS').

Parameters:

scopeId - The identifier of the resource, (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}).
pricingName - name of the pricing configuration.
context - The context to associate with this operation.

Returns:

get

public abstract Pricing get(String scopeId, String pricingName)

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'.

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).
pricingName - name of the pricing configuration.

Returns:

the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id).

getWithResponse

public abstract Response getWithResponse(String scopeId, String pricingName, Context context)

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'.

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).
pricingName - name of the pricing configuration.
context - The context to associate with this operation.

Returns:

the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id) along with Response<T>.

list

public abstract PricingList list(String scopeId)

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.

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).

Returns:

list of pricing configurations response.

listWithResponse

public abstract Response listWithResponse(String scopeId, String filter, Context context)

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.

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).
filter - OData filter. Optional.
context - The context to associate with this operation.

Returns:

list of pricing configurations response along with Response<T>.

update

public abstract Pricing update(String scopeId, String pricingName, PricingInner pricing)

Updates a provided Microsoft Defender for Cloud pricing configuration in the scope. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines' and only for plan='VirtualMachines' and subPlan='P1').

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).
pricingName - name of the pricing configuration.
pricing - Pricing object.

Returns:

microsoft Defender for Cloud is provided in two pricing tiers: free and standard.

updateWithResponse

public abstract Response updateWithResponse(String scopeId, String pricingName, PricingInner pricing, Context context)

Updates a provided Microsoft Defender for Cloud pricing configuration in the scope. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines' and only for plan='VirtualMachines' and subPlan='P1').

Parameters:

scopeId - The scope id of the pricing. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or a specific resource (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
  • Supported resources are (VirtualMachines).
pricingName - name of the pricing configuration.
pricing - Pricing object.
context - The context to associate with this operation.

Returns:

microsoft Defender for Cloud is provided in two pricing tiers: free and standard along with Response<T>.

Applies to