Pricings interface

Interface representing a Pricings.

Methods

delete(string, string, PricingsDeleteOptionalParams)

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

get(string, string, PricingsGetOptionalParams)

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

list(string, PricingsListOptionalParams)

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.

update(string, string, Pricing, PricingsUpdateOptionalParams)

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

Method Details

delete(string, string, PricingsDeleteOptionalParams)

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

function delete(scopeId: string, pricingName: string, options?: PricingsDeleteOptionalParams): Promise<void>

Parameters

scopeId

string

The identifier of the resource, (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})

pricingName

string

name of the pricing configuration

options
PricingsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, PricingsGetOptionalParams)

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

function get(scopeId: string, pricingName: string, options?: PricingsGetOptionalParams): Promise<Pricing>

Parameters

scopeId

string

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

string

name of the pricing configuration

options
PricingsGetOptionalParams

The options parameters.

Returns

Promise<Pricing>

list(string, PricingsListOptionalParams)

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.

function list(scopeId: string, options?: PricingsListOptionalParams): Promise<PricingList>

Parameters

scopeId

string

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)

options
PricingsListOptionalParams

The options parameters.

Returns

Promise<PricingList>

update(string, string, Pricing, PricingsUpdateOptionalParams)

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

function update(scopeId: string, pricingName: string, pricing: Pricing, options?: PricingsUpdateOptionalParams): Promise<Pricing>

Parameters

scopeId

string

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

string

name of the pricing configuration

pricing
Pricing

Pricing object

options
PricingsUpdateOptionalParams

The options parameters.

Returns

Promise<Pricing>