PricingsClient Interface

public interface PricingsClient

An instance of this class provides access to all the operations defined in PricingsClient.

Method Summary

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

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

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

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

abstract PricingInner 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<PricingInner> 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 PricingListInner list(String scopeId)

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

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

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

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

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

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

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

Method Details

delete

public abstract void delete(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, ARC Machines, and Containers').

Parameters:

scopeId - The fully qualified Azure Resource manager identifier of the resource.
pricingName - name of the pricing configuration.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(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, ARC Machines, and Containers').

Parameters:

scopeId - The fully qualified Azure Resource manager identifier of the resource.
pricingName - name of the pricing configuration.
context - The context to associate with this operation.

Returns:

get

public abstract PricingInner 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 fully qualified Azure Resource manager identifier of the resource.
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<PricingInner> 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 fully qualified Azure Resource manager identifier of the resource.
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 PricingListInner 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 fully qualified Azure Resource manager identifier of the resource.

Returns:

list of pricing configurations response.

listWithResponse

public abstract Response<PricingListInner> 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 fully qualified Azure Resource manager identifier of the resource.
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 PricingInner 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 fully qualified Azure Resource manager identifier of the resource.
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<PricingInner> 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 fully qualified Azure Resource manager identifier of the resource.
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