次の方法で共有


Pricings interface

価格を表すインターフェイス。

メソッド

delete(string, string, PricingsDeleteOptionalParams)

特定のリソースで指定された Microsoft Defender for Cloud の価格構成を削除します。 リソース スコープに対してのみ有効です (サポートされているリソースは、"VirtualMachines、VMSS、ARC MachinesS" です)。

get(string, string, PricingsGetOptionalParams)

選択したスコープの Defender プランの価格構成を取得します (有効なスコープはリソース ID またはサブスクリプション ID です)。 リソース レベルでは、サポートされているリソースの種類は "VirtualMachines、VMSS、ARC Machines" です。

list(string, PricingsListOptionalParams)

指定したオプションの$filterと一致する scopeId の Microsoft Defender for Cloud の価格構成を一覧表示します。 有効なスコープは、サブスクリプション ID または特定のリソース ID です (サポートされているリソースは、"VirtualMachines、VMSS、ARC Machines" です)。 有効な$filterは、'name in ({planName1},{planName2},...)' です。 $filterが指定されていない場合は、フィルター処理されていないリストが返されます。 '$filter=name in (planName1,planName2)' が指定されている場合、返される一覧には 、'planName1' と 'planName2' にのみ設定された価格が含まれます。

update(string, string, Pricing, PricingsUpdateOptionalParams)

指定された Microsoft Defender for Cloud の価格構成をスコープ内で更新します。 有効なスコープは、サブスクリプション ID または特定のリソース ID です (サポートされているリソースは、"VirtualMachines、VMSS、ARC Machines" であり、plan='VirtualMachines' と subPlan='P1' のみです)。

メソッドの詳細

delete(string, string, PricingsDeleteOptionalParams)

特定のリソースで指定された Microsoft Defender for Cloud の価格構成を削除します。 リソース スコープに対してのみ有効です (サポートされているリソースは、"VirtualMachines、VMSS、ARC MachinesS" です)。

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

パラメーター

scopeId

string

リソースの識別子 (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})

pricingName

string

価格構成の名前

options
PricingsDeleteOptionalParams

オプション パラメーター。

戻り値

Promise<void>

get(string, string, PricingsGetOptionalParams)

選択したスコープの Defender プランの価格構成を取得します (有効なスコープはリソース ID またはサブスクリプション ID です)。 リソース レベルでは、サポートされているリソースの種類は "VirtualMachines、VMSS、ARC Machines" です。

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

パラメーター

scopeId

string

価格のスコープ ID。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}')、または特定のリソース (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}) - サポートされているリソースは (VirtualMachines) です

pricingName

string

価格構成の名前

options
PricingsGetOptionalParams

オプション パラメーター。

戻り値

Promise<Pricing>

list(string, PricingsListOptionalParams)

指定したオプションの$filterと一致する scopeId の Microsoft Defender for Cloud の価格構成を一覧表示します。 有効なスコープは、サブスクリプション ID または特定のリソース ID です (サポートされているリソースは、"VirtualMachines、VMSS、ARC Machines" です)。 有効な$filterは、'name in ({planName1},{planName2},...)' です。 $filterが指定されていない場合は、フィルター処理されていないリストが返されます。 '$filter=name in (planName1,planName2)' が指定されている場合、返される一覧には 、'planName1' と 'planName2' にのみ設定された価格が含まれます。

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

パラメーター

scopeId

string

価格のスコープ ID。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}')、または特定のリソース (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}) - サポートされているリソースは (VirtualMachines) です

options
PricingsListOptionalParams

オプション パラメーター。

戻り値

Promise<PricingList>

update(string, string, Pricing, PricingsUpdateOptionalParams)

指定された Microsoft Defender for Cloud の価格構成をスコープ内で更新します。 有効なスコープは、サブスクリプション ID または特定のリソース ID です (サポートされているリソースは、"VirtualMachines、VMSS、ARC Machines" であり、plan='VirtualMachines' と subPlan='P1' のみです)。

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

パラメーター

scopeId

string

価格のスコープ ID。 有効なスコープは、サブスクリプション (形式: 'subscriptions/{subscriptionId}')、または特定のリソース (形式: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}) - サポートされているリソースは (VirtualMachines) です

pricingName

string

価格構成の名前

pricing
Pricing

Pricing オブジェクト

options
PricingsUpdateOptionalParams

オプション パラメーター。

戻り値

Promise<Pricing>