Share via


HciVmNetworkSecurityGroupCollection Class

Definition

A class representing a collection of HciVmNetworkSecurityGroupResource and their operations. Each HciVmNetworkSecurityGroupResource in the collection will belong to the same instance of ResourceGroupResource. To get a HciVmNetworkSecurityGroupCollection instance call the GetHciVmNetworkSecurityGroups method from an instance of ResourceGroupResource.

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

Constructors

HciVmNetworkSecurityGroupCollection()

Initializes a new instance of the HciVmNetworkSecurityGroupCollection class for mocking.

Properties

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

CreateOrUpdate(WaitUntil, String, HciVmNetworkSecurityGroupData, CancellationToken)

Creates or updates a network security group in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_CreateOrUpdate
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
CreateOrUpdateAsync(WaitUntil, String, HciVmNetworkSecurityGroupData, CancellationToken)

Creates or updates a network security group in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_CreateOrUpdate
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
Get(String, CancellationToken)

Gets the specified network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
GetAll(CancellationToken)

Gets all network security groups in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups
  • Operation Id: NetworkSecurityGroup_ListByResourceGroup
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
GetAllAsync(CancellationToken)

Gets all network security groups in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups
  • Operation Id: NetworkSecurityGroup_ListByResourceGroup
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
GetAsync(String, CancellationToken)

Gets the specified network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}
  • Operation Id: NetworkSecurityGroup_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmNetworkSecurityGroupResource
TryGetApiVersion(ResourceType, String)

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

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<HciVmNetworkSecurityGroupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<HciVmNetworkSecurityGroupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to