pricings
Creates, updates, deletes, gets or lists a pricings
resource.
Overview
Name | pricings |
Type | Resource |
Id | azure.security.pricings |
Fields
- vw_pricings
- pricings
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
deprecated | text | field from the properties object |
enablement_time | text | field from the properties object |
enforce | text | field from the properties object |
extensions | text | field from the properties object |
free_trial_remaining_time | text | field from the properties object |
inherited | text | field from the properties object |
inherited_from | text | field from the properties object |
pricingName | text | field from the properties object |
pricing_tier | text | field from the properties object |
replaced_by | text | field from the properties object |
resources_coverage_status | text | field from the properties object |
scopeId | text | field from the properties object |
sub_plan | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | Pricing properties for the relevant scope |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | pricingName, scopeId | 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 | SELECT | 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. |
delete | DELETE | pricingName, scopeId | 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'). |
update | REPLACE | pricingName, scopeId | 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'). |
SELECT
examples
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.
- vw_pricings
- pricings
SELECT
id,
name,
deprecated,
enablement_time,
enforce,
extensions,
free_trial_remaining_time,
inherited,
inherited_from,
pricingName,
pricing_tier,
replaced_by,
resources_coverage_status,
scopeId,
sub_plan,
type
FROM azure.security.vw_pricings
WHERE scopeId = '{{ scopeId }}';
SELECT
id,
name,
properties,
type
FROM azure.security.pricings
WHERE scopeId = '{{ scopeId }}';
REPLACE
example
Replaces all fields in the specified pricings
resource.
/*+ update */
REPLACE azure.security.pricings
SET
properties = '{{ properties }}'
WHERE
pricingName = '{{ pricingName }}'
AND scopeId = '{{ scopeId }}';
DELETE
example
Deletes the specified pricings
resource.
/*+ delete */
DELETE FROM azure.security.pricings
WHERE pricingName = '{{ pricingName }}'
AND scopeId = '{{ scopeId }}';