ArmNetworkModelFactory.NetworkSecurityGroupData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of NetworkSecurityGroupData.
public static Azure.ResourceManager.Network.NetworkSecurityGroupData NetworkSecurityGroupData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ETag? etag = default, bool? flushConnection = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SecurityRuleData> securityRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SecurityRuleData> defaultSecurityRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.NetworkInterfaceData> networkInterfaces = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SubnetData> subnets = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.FlowLogData> flowLogs = default, Guid? resourceGuid = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member NetworkSecurityGroupData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ETag> * Nullable<bool> * seq<Azure.ResourceManager.Network.SecurityRuleData> * seq<Azure.ResourceManager.Network.SecurityRuleData> * seq<Azure.ResourceManager.Network.NetworkInterfaceData> * seq<Azure.ResourceManager.Network.SubnetData> * seq<Azure.ResourceManager.Network.FlowLogData> * Nullable<Guid> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.NetworkSecurityGroupData
Public Shared Function NetworkSecurityGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional flushConnection As Nullable(Of Boolean) = Nothing, Optional securityRules As IEnumerable(Of SecurityRuleData) = Nothing, Optional defaultSecurityRules As IEnumerable(Of SecurityRuleData) = Nothing, Optional networkInterfaces As IEnumerable(Of NetworkInterfaceData) = Nothing, Optional subnets As IEnumerable(Of SubnetData) = Nothing, Optional flowLogs As IEnumerable(Of FlowLogData) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing) As NetworkSecurityGroupData
Parameters
Resource ID.
- name
- String
Resource name.
- resourceType
- Nullable<ResourceType>
Resource type.
- location
- Nullable<AzureLocation>
Resource location.
- tags
- IDictionary<String,String>
Resource tags.
When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
- securityRules
- IEnumerable<SecurityRuleData>
A collection of security rules of the network security group.
- defaultSecurityRules
- IEnumerable<SecurityRuleData>
The default security rules of network security group.
- networkInterfaces
- IEnumerable<NetworkInterfaceData>
A collection of references to network interfaces.
- subnets
- IEnumerable<SubnetData>
A collection of references to subnets.
- flowLogs
- IEnumerable<FlowLogData>
A collection of references to flow log resources.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the network security group resource.
Returns
A new NetworkSecurityGroupData instance for mocking.
Applies to
Azure SDK for .NET