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
Pricing |
list(String scopeId)
Lists Microsoft Defender for Cloud pricing configurations of the scope |
abstract
Response<Pricing |
listWithResponse(String scopeId, String filter, Context context)
Lists Microsoft Defender for Cloud pricing configurations of the scope |
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:
deleteByResourceGroupWithResponse
public abstract Response
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:
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:
- Supported resources are (VirtualMachines).
Returns:
getWithResponse
public abstract Response
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
listWithResponse
public abstract Response
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
updateWithResponse
public abstract Response
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:
- Supported resources are (VirtualMachines).
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for