SecurityCenterPricingCollection Class

Definition

A class representing a collection of SecurityCenterPricingResource and their operations. Each SecurityCenterPricingResource in the collection will belong to the same instance of ArmResource. To get a SecurityCenterPricingCollection instance call the GetSecurityCenterPricings method from an instance of ArmResource.

public class SecurityCenterPricingCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.SecurityCenterPricingResource>
type SecurityCenterPricingCollection = class
    inherit ArmCollection
    interface seq<SecurityCenterPricingResource>
    interface IEnumerable
    interface IAsyncEnumerable<SecurityCenterPricingResource>
Public Class SecurityCenterPricingCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SecurityCenterPricingResource), IEnumerable(Of SecurityCenterPricingResource)
Inheritance
SecurityCenterPricingCollection
Implements

Constructors

Name Description
SecurityCenterPricingCollection()

Initializes a new instance of SecurityCenterPricingCollection for mocking.

Properties

Name Description
Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Name Description
CreateOrUpdate(WaitUntil, String, SecurityCenterPricingData, CancellationToken)

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

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Update.
  • Default Api Version. : 2024-01-01.
CreateOrUpdateAsync(WaitUntil, String, SecurityCenterPricingData, CancellationToken)

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

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Update.
  • Default Api Version. : 2024-01-01.
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
Get(String, CancellationToken)

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

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
GetAll(CancellationToken)

Lists Microsoft Defender for Cloud pricing configurations of the scope.

GetAll(String, CancellationToken)

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.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings.
  • Operation Id. : Pricings_List.
  • Default Api Version. : 2024-01-01.
GetAllAsync(CancellationToken)

Lists Microsoft Defender for Cloud pricing configurations of the scope.

GetAllAsync(String, CancellationToken)

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.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings.
  • Operation Id. : Pricings_List.
  • Default Api Version. : 2024-01-01.
GetAsync(String, CancellationToken)

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

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path. : /{scopeId}/providers/Microsoft.Security/pricings/{pricingName}.
  • Operation Id. : Pricings_Get.
  • Default Api Version. : 2024-01-01.
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

Name Description
IAsyncEnumerable<SecurityCenterPricingResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SecurityCenterPricingResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Extension Methods

Name Description
ArrayContainsAll<T>(IEnumerable<T>, Object[])

Returns whether all values are present in the array.

ArrayContainsAny<T>(IEnumerable<T>, Object[])

Returns whether any values are present in the array.

Applies to