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.
public static Azure.ResourceManager.Network.NetworkSecurityGroupData NetworkSecurityGroupData(Azure.Core.ResourceIdentifier id = default, string name = default, string type = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = 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, Azure.ETag? eTag = default);
static member NetworkSecurityGroupData : Azure.Core.ResourceIdentifier * string * string * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * 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> * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.NetworkSecurityGroupData
Public Shared Function NetworkSecurityGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = 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, Optional eTag As Nullable(Of ETag) = Nothing) As NetworkSecurityGroupData
Parameters
Resource ID.
- name
- String
Resource name.
- type
- String
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.