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
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
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 and ARC MachinesS').
Parameters:
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 and ARC MachinesS').
Parameters:
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns:
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:
- Supported resources are (VirtualMachines).
Returns: