Condividi tramite


DefaultSecurityRuleCollection Class

Definition

A class representing a collection of DefaultSecurityRuleResource and their operations. Each DefaultSecurityRuleResource in the collection will belong to the same instance of NetworkSecurityGroupResource. To get a DefaultSecurityRuleCollection instance call the GetDefaultSecurityRules method from an instance of NetworkSecurityGroupResource.

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

Constructors

DefaultSecurityRuleCollection()

Initializes a new instance of the DefaultSecurityRuleCollection 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

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
Get(String, CancellationToken)

Get the specified default network security rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
GetAll(CancellationToken)

Gets all default security rules in a network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules
  • Operation Id: DefaultSecurityRules_List
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
GetAllAsync(CancellationToken)

Gets all default security rules in a network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules
  • Operation Id: DefaultSecurityRules_List
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
GetAsync(String, CancellationToken)

Get the specified default network security rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}
  • Operation Id: DefaultSecurityRules_Get
  • Default Api Version: 2024-03-01
  • Resource: DefaultSecurityRuleResource
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<DefaultSecurityRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DefaultSecurityRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to