azure-native.azurestackhci.SecurityRule
Explore with Pulumi AI
Security Rule resource. Azure REST API version: 2024-02-01-preview.
Other available API versions: 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01-preview.
Example Usage
SecurityRulesCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var securityRule = new AzureNative.AzureStackHCI.SecurityRule("securityRule", new()
    {
        Access = AzureNative.AzureStackHCI.SecurityRuleAccess.Allow,
        DestinationAddressPrefixes = new[]
        {
            "*",
        },
        DestinationPortRanges = new[]
        {
            "80",
        },
        Direction = AzureNative.AzureStackHCI.SecurityRuleDirection.Inbound,
        ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
        {
            Name = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
            Type = AzureNative.AzureStackHCI.ExtendedLocationTypes.CustomLocation,
        },
        NetworkSecurityGroupName = "testnsg",
        Priority = 130,
        Protocol = AzureNative.AzureStackHCI.SecurityRuleProtocol.Asterisk,
        ResourceGroupName = "testrg",
        SecurityRuleName = "rule1",
        SourceAddressPrefixes = new[]
        {
            "*",
        },
        SourcePortRanges = new[]
        {
            "*",
        },
    });
});
package main
import (
	azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azurestackhci.NewSecurityRule(ctx, "securityRule", &azurestackhci.SecurityRuleArgs{
			Access: pulumi.String(azurestackhci.SecurityRuleAccessAllow),
			DestinationAddressPrefixes: pulumi.StringArray{
				pulumi.String("*"),
			},
			DestinationPortRanges: pulumi.StringArray{
				pulumi.String("80"),
			},
			Direction: pulumi.String(azurestackhci.SecurityRuleDirectionInbound),
			ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
				Name: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"),
				Type: pulumi.String(azurestackhci.ExtendedLocationTypesCustomLocation),
			},
			NetworkSecurityGroupName: pulumi.String("testnsg"),
			Priority:                 pulumi.Int(130),
			Protocol:                 pulumi.String(azurestackhci.SecurityRuleProtocolAsterisk),
			ResourceGroupName:        pulumi.String("testrg"),
			SecurityRuleName:         pulumi.String("rule1"),
			SourceAddressPrefixes: pulumi.StringArray{
				pulumi.String("*"),
			},
			SourcePortRanges: pulumi.StringArray{
				pulumi.String("*"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.SecurityRule;
import com.pulumi.azurenative.azurestackhci.SecurityRuleArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var securityRule = new SecurityRule("securityRule", SecurityRuleArgs.builder()
            .access("Allow")
            .destinationAddressPrefixes("*")
            .destinationPortRanges("80")
            .direction("Inbound")
            .extendedLocation(ExtendedLocationArgs.builder()
                .name("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
                .type("CustomLocation")
                .build())
            .networkSecurityGroupName("testnsg")
            .priority(130)
            .protocol("*")
            .resourceGroupName("testrg")
            .securityRuleName("rule1")
            .sourceAddressPrefixes("*")
            .sourcePortRanges("*")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const securityRule = new azure_native.azurestackhci.SecurityRule("securityRule", {
    access: azure_native.azurestackhci.SecurityRuleAccess.Allow,
    destinationAddressPrefixes: ["*"],
    destinationPortRanges: ["80"],
    direction: azure_native.azurestackhci.SecurityRuleDirection.Inbound,
    extendedLocation: {
        name: "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
        type: azure_native.azurestackhci.ExtendedLocationTypes.CustomLocation,
    },
    networkSecurityGroupName: "testnsg",
    priority: 130,
    protocol: azure_native.azurestackhci.SecurityRuleProtocol.Asterisk,
    resourceGroupName: "testrg",
    securityRuleName: "rule1",
    sourceAddressPrefixes: ["*"],
    sourcePortRanges: ["*"],
});
import pulumi
import pulumi_azure_native as azure_native
security_rule = azure_native.azurestackhci.SecurityRule("securityRule",
    access=azure_native.azurestackhci.SecurityRuleAccess.ALLOW,
    destination_address_prefixes=["*"],
    destination_port_ranges=["80"],
    direction=azure_native.azurestackhci.SecurityRuleDirection.INBOUND,
    extended_location={
        "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
        "type": azure_native.azurestackhci.ExtendedLocationTypes.CUSTOM_LOCATION,
    },
    network_security_group_name="testnsg",
    priority=130,
    protocol=azure_native.azurestackhci.SecurityRuleProtocol.ASTERISK,
    resource_group_name="testrg",
    security_rule_name="rule1",
    source_address_prefixes=["*"],
    source_port_ranges=["*"])
resources:
  securityRule:
    type: azure-native:azurestackhci:SecurityRule
    properties:
      access: Allow
      destinationAddressPrefixes:
        - '*'
      destinationPortRanges:
        - '80'
      direction: Inbound
      extendedLocation:
        name: /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location
        type: CustomLocation
      networkSecurityGroupName: testnsg
      priority: 130
      protocol: '*'
      resourceGroupName: testrg
      securityRuleName: rule1
      sourceAddressPrefixes:
        - '*'
      sourcePortRanges:
        - '*'
Create SecurityRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityRule(name: string, args: SecurityRuleArgs, opts?: CustomResourceOptions);@overload
def SecurityRule(resource_name: str,
                 args: SecurityRuleArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def SecurityRule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 direction: Optional[Union[str, SecurityRuleDirection]] = None,
                 network_security_group_name: Optional[str] = None,
                 priority: Optional[int] = None,
                 protocol: Optional[Union[str, SecurityRuleProtocol]] = None,
                 access: Optional[Union[str, SecurityRuleAccess]] = None,
                 description: Optional[str] = None,
                 destination_address_prefixes: Optional[Sequence[str]] = None,
                 destination_port_ranges: Optional[Sequence[str]] = None,
                 extended_location: Optional[ExtendedLocationArgs] = None,
                 security_rule_name: Optional[str] = None,
                 source_address_prefixes: Optional[Sequence[str]] = None,
                 source_port_ranges: Optional[Sequence[str]] = None)func NewSecurityRule(ctx *Context, name string, args SecurityRuleArgs, opts ...ResourceOption) (*SecurityRule, error)public SecurityRule(string name, SecurityRuleArgs args, CustomResourceOptions? opts = null)
public SecurityRule(String name, SecurityRuleArgs args)
public SecurityRule(String name, SecurityRuleArgs args, CustomResourceOptions options)
type: azure-native:azurestackhci:SecurityRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityRuleResource = new AzureNative.AzureStackHCI.SecurityRule("securityRuleResource", new()
{
    ResourceGroupName = "string",
    Direction = "string",
    NetworkSecurityGroupName = "string",
    Priority = 0,
    Protocol = "string",
    Access = "string",
    Description = "string",
    DestinationAddressPrefixes = new[]
    {
        "string",
    },
    DestinationPortRanges = new[]
    {
        "string",
    },
    ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
    {
        Name = "string",
        Type = "string",
    },
    SecurityRuleName = "string",
    SourceAddressPrefixes = new[]
    {
        "string",
    },
    SourcePortRanges = new[]
    {
        "string",
    },
});
example, err := azurestackhci.NewSecurityRule(ctx, "securityRuleResource", &azurestackhci.SecurityRuleArgs{
	ResourceGroupName:        pulumi.String("string"),
	Direction:                pulumi.String("string"),
	NetworkSecurityGroupName: pulumi.String("string"),
	Priority:                 pulumi.Int(0),
	Protocol:                 pulumi.String("string"),
	Access:                   pulumi.String("string"),
	Description:              pulumi.String("string"),
	DestinationAddressPrefixes: pulumi.StringArray{
		pulumi.String("string"),
	},
	DestinationPortRanges: pulumi.StringArray{
		pulumi.String("string"),
	},
	ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
		Name: pulumi.String("string"),
		Type: pulumi.String("string"),
	},
	SecurityRuleName: pulumi.String("string"),
	SourceAddressPrefixes: pulumi.StringArray{
		pulumi.String("string"),
	},
	SourcePortRanges: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var securityRuleResource = new SecurityRule("securityRuleResource", SecurityRuleArgs.builder()
    .resourceGroupName("string")
    .direction("string")
    .networkSecurityGroupName("string")
    .priority(0)
    .protocol("string")
    .access("string")
    .description("string")
    .destinationAddressPrefixes("string")
    .destinationPortRanges("string")
    .extendedLocation(ExtendedLocationArgs.builder()
        .name("string")
        .type("string")
        .build())
    .securityRuleName("string")
    .sourceAddressPrefixes("string")
    .sourcePortRanges("string")
    .build());
security_rule_resource = azure_native.azurestackhci.SecurityRule("securityRuleResource",
    resource_group_name="string",
    direction="string",
    network_security_group_name="string",
    priority=0,
    protocol="string",
    access="string",
    description="string",
    destination_address_prefixes=["string"],
    destination_port_ranges=["string"],
    extended_location={
        "name": "string",
        "type": "string",
    },
    security_rule_name="string",
    source_address_prefixes=["string"],
    source_port_ranges=["string"])
const securityRuleResource = new azure_native.azurestackhci.SecurityRule("securityRuleResource", {
    resourceGroupName: "string",
    direction: "string",
    networkSecurityGroupName: "string",
    priority: 0,
    protocol: "string",
    access: "string",
    description: "string",
    destinationAddressPrefixes: ["string"],
    destinationPortRanges: ["string"],
    extendedLocation: {
        name: "string",
        type: "string",
    },
    securityRuleName: "string",
    sourceAddressPrefixes: ["string"],
    sourcePortRanges: ["string"],
});
type: azure-native:azurestackhci:SecurityRule
properties:
    access: string
    description: string
    destinationAddressPrefixes:
        - string
    destinationPortRanges:
        - string
    direction: string
    extendedLocation:
        name: string
        type: string
    networkSecurityGroupName: string
    priority: 0
    protocol: string
    resourceGroupName: string
    securityRuleName: string
    sourceAddressPrefixes:
        - string
    sourcePortRanges:
        - string
SecurityRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityRule resource accepts the following input properties:
- Access
string | Pulumi.Azure Native. Azure Stack HCI. Security Rule Access 
- The network traffic is allowed or denied.
- Direction
string | Pulumi.Azure Native. Azure Stack HCI. Security Rule Direction 
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- NetworkSecurity stringGroup Name 
- Name of the network security group
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Protocol
string | Pulumi.Azure Native. Azure Stack HCI. Security Rule Protocol 
- Network protocol this rule applies to.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Description string
- A description for this rule. Restricted to 140 chars.
- DestinationAddress List<string>Prefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- DestinationPort List<string>Ranges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- ExtendedLocation Pulumi.Azure Native. Azure Stack HCI. Inputs. Extended Location 
- The extendedLocation of the resource.
- SecurityRule stringName 
- Name of the security rule.
- SourceAddress List<string>Prefixes 
- The CIDR or source IP ranges.
- SourcePort List<string>Ranges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Access
string | SecurityRule Access 
- The network traffic is allowed or denied.
- Direction
string | SecurityRule Direction 
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- NetworkSecurity stringGroup Name 
- Name of the network security group
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Protocol
string | SecurityRule Protocol 
- Network protocol this rule applies to.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Description string
- A description for this rule. Restricted to 140 chars.
- DestinationAddress []stringPrefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- DestinationPort []stringRanges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- ExtendedLocation ExtendedLocation Args 
- The extendedLocation of the resource.
- SecurityRule stringName 
- Name of the security rule.
- SourceAddress []stringPrefixes 
- The CIDR or source IP ranges.
- SourcePort []stringRanges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access
String | SecurityRule Access 
- The network traffic is allowed or denied.
- direction
String | SecurityRule Direction 
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- networkSecurity StringGroup Name 
- Name of the network security group
- priority Integer
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol
String | SecurityRule Protocol 
- Network protocol this rule applies to.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- description String
- A description for this rule. Restricted to 140 chars.
- destinationAddress List<String>Prefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- destinationPort List<String>Ranges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extendedLocation ExtendedLocation 
- The extendedLocation of the resource.
- securityRule StringName 
- Name of the security rule.
- sourceAddress List<String>Prefixes 
- The CIDR or source IP ranges.
- sourcePort List<String>Ranges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access
string | SecurityRule Access 
- The network traffic is allowed or denied.
- direction
string | SecurityRule Direction 
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- networkSecurity stringGroup Name 
- Name of the network security group
- priority number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol
string | SecurityRule Protocol 
- Network protocol this rule applies to.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- description string
- A description for this rule. Restricted to 140 chars.
- destinationAddress string[]Prefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- destinationPort string[]Ranges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extendedLocation ExtendedLocation 
- The extendedLocation of the resource.
- securityRule stringName 
- Name of the security rule.
- sourceAddress string[]Prefixes 
- The CIDR or source IP ranges.
- sourcePort string[]Ranges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access
str | SecurityRule Access 
- The network traffic is allowed or denied.
- direction
str | SecurityRule Direction 
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- network_security_ strgroup_ name 
- Name of the network security group
- priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol
str | SecurityRule Protocol 
- Network protocol this rule applies to.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- description str
- A description for this rule. Restricted to 140 chars.
- destination_address_ Sequence[str]prefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- destination_port_ Sequence[str]ranges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended_location ExtendedLocation Args 
- The extendedLocation of the resource.
- security_rule_ strname 
- Name of the security rule.
- source_address_ Sequence[str]prefixes 
- The CIDR or source IP ranges.
- source_port_ Sequence[str]ranges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access String | "Allow" | "Deny"
- The network traffic is allowed or denied.
- direction String | "Inbound" | "Outbound"
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- networkSecurity StringGroup Name 
- Name of the network security group
- priority Number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol String | "Tcp" | "Udp" | "Icmp" | "*"
- Network protocol this rule applies to.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- description String
- A description for this rule. Restricted to 140 chars.
- destinationAddress List<String>Prefixes 
- The destination address prefixes. CIDR or destination IP ranges.
- destinationPort List<String>Ranges 
- The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extendedLocation Property Map
- The extendedLocation of the resource.
- securityRule StringName 
- Name of the security rule.
- sourceAddress List<String>Prefixes 
- The CIDR or source IP ranges.
- sourcePort List<String>Ranges 
- The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the SR
- SystemData Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the SR
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the SR
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioningState string
- Provisioning state of the SR
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_state str
- Provisioning state of the SR
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the SR
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ExtendedLocation, ExtendedLocationArgs    
- Name string
- The name of the extended location.
- Type
string | Pulumi.Azure Native. Azure Stack HCI. Extended Location Types 
- The type of the extended location.
- Name string
- The name of the extended location.
- Type
string | ExtendedLocation Types 
- The type of the extended location.
- name String
- The name of the extended location.
- type
String | ExtendedLocation Types 
- The type of the extended location.
- name string
- The name of the extended location.
- type
string | ExtendedLocation Types 
- The type of the extended location.
- name str
- The name of the extended location.
- type
str | ExtendedLocation Types 
- The type of the extended location.
- name String
- The name of the extended location.
- type
String | "CustomLocation" 
- The type of the extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs      
ExtendedLocationTypes, ExtendedLocationTypesArgs      
- CustomLocation 
- CustomLocation
- ExtendedLocation Types Custom Location 
- CustomLocation
- CustomLocation 
- CustomLocation
- CustomLocation 
- CustomLocation
- CUSTOM_LOCATION
- CustomLocation
- "CustomLocation" 
- CustomLocation
SecurityRuleAccess, SecurityRuleAccessArgs      
- Allow
- AllowNetwork traffic is allowed
- Deny
- DenyNetwork traffic is denied
- SecurityRule Access Allow 
- AllowNetwork traffic is allowed
- SecurityRule Access Deny 
- DenyNetwork traffic is denied
- Allow
- AllowNetwork traffic is allowed
- Deny
- DenyNetwork traffic is denied
- Allow
- AllowNetwork traffic is allowed
- Deny
- DenyNetwork traffic is denied
- ALLOW
- AllowNetwork traffic is allowed
- DENY
- DenyNetwork traffic is denied
- "Allow"
- AllowNetwork traffic is allowed
- "Deny"
- DenyNetwork traffic is denied
SecurityRuleDirection, SecurityRuleDirectionArgs      
- Inbound
- InboundRule is evaluated on incoming traffic
- Outbound
- OutboundRule is evaluated on outgoing traffic
- SecurityRule Direction Inbound 
- InboundRule is evaluated on incoming traffic
- SecurityRule Direction Outbound 
- OutboundRule is evaluated on outgoing traffic
- Inbound
- InboundRule is evaluated on incoming traffic
- Outbound
- OutboundRule is evaluated on outgoing traffic
- Inbound
- InboundRule is evaluated on incoming traffic
- Outbound
- OutboundRule is evaluated on outgoing traffic
- INBOUND
- InboundRule is evaluated on incoming traffic
- OUTBOUND
- OutboundRule is evaluated on outgoing traffic
- "Inbound"
- InboundRule is evaluated on incoming traffic
- "Outbound"
- OutboundRule is evaluated on outgoing traffic
SecurityRuleProtocol, SecurityRuleProtocolArgs      
- Tcp
- TcpTransmission Control Protocol
- Udp
- UdpUser Datagram Protocol
- Icmp
- IcmpInternet Control Message Protocol
- Asterisk
- *Wildcard rule for all protocols
- SecurityRule Protocol Tcp 
- TcpTransmission Control Protocol
- SecurityRule Protocol Udp 
- UdpUser Datagram Protocol
- SecurityRule Protocol Icmp 
- IcmpInternet Control Message Protocol
- SecurityRule Protocol Asterisk 
- *Wildcard rule for all protocols
- Tcp
- TcpTransmission Control Protocol
- Udp
- UdpUser Datagram Protocol
- Icmp
- IcmpInternet Control Message Protocol
- Asterisk
- *Wildcard rule for all protocols
- Tcp
- TcpTransmission Control Protocol
- Udp
- UdpUser Datagram Protocol
- Icmp
- IcmpInternet Control Message Protocol
- Asterisk
- *Wildcard rule for all protocols
- TCP
- TcpTransmission Control Protocol
- UDP
- UdpUser Datagram Protocol
- ICMP
- IcmpInternet Control Message Protocol
- ASTERISK
- *Wildcard rule for all protocols
- "Tcp"
- TcpTransmission Control Protocol
- "Udp"
- UdpUser Datagram Protocol
- "Icmp"
- IcmpInternet Control Message Protocol
- "*"
- *Wildcard rule for all protocols
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurestackhci:SecurityRule rule1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0