1. Packages
  2. Azure Native
  3. API Docs
  4. azurestackhci
  5. SecurityRule
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.azurestackhci.SecurityRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Security Rule resource. Azure REST API version: 2024-02-01-preview.

    Other available API versions: 2024-05-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 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=["*"])
    
    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: ["*"],
    });
    
    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

    The SecurityRule resource accepts the following input properties:

    Access string | Pulumi.AzureNative.AzureStackHCI.SecurityRuleAccess
    The network traffic is allowed or denied.
    Direction string | Pulumi.AzureNative.AzureStackHCI.SecurityRuleDirection
    The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
    NetworkSecurityGroupName string
    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.AzureNative.AzureStackHCI.SecurityRuleProtocol
    Network protocol this rule applies to.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Description string
    A description for this rule. Restricted to 140 chars.
    DestinationAddressPrefixes List<string>
    The destination address prefixes. CIDR or destination IP ranges.
    DestinationPortRanges List<string>
    The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    ExtendedLocation Pulumi.AzureNative.AzureStackHCI.Inputs.ExtendedLocation
    The extendedLocation of the resource.
    SecurityRuleName string
    Name of the security rule.
    SourceAddressPrefixes List<string>
    The CIDR or source IP ranges.
    SourcePortRanges List<string>
    The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    Access string | SecurityRuleAccess
    The network traffic is allowed or denied.
    Direction string | SecurityRuleDirection
    The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
    NetworkSecurityGroupName string
    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 | SecurityRuleProtocol
    Network protocol this rule applies to.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Description string
    A description for this rule. Restricted to 140 chars.
    DestinationAddressPrefixes []string
    The destination address prefixes. CIDR or destination IP ranges.
    DestinationPortRanges []string
    The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    ExtendedLocation ExtendedLocationArgs
    The extendedLocation of the resource.
    SecurityRuleName string
    Name of the security rule.
    SourceAddressPrefixes []string
    The CIDR or source IP ranges.
    SourcePortRanges []string
    The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    access String | SecurityRuleAccess
    The network traffic is allowed or denied.
    direction String | SecurityRuleDirection
    The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
    networkSecurityGroupName String
    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 | SecurityRuleProtocol
    Network protocol this rule applies to.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    description String
    A description for this rule. Restricted to 140 chars.
    destinationAddressPrefixes List<String>
    The destination address prefixes. CIDR or destination IP ranges.
    destinationPortRanges List<String>
    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.
    securityRuleName String
    Name of the security rule.
    sourceAddressPrefixes List<String>
    The CIDR or source IP ranges.
    sourcePortRanges List<String>
    The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    access string | SecurityRuleAccess
    The network traffic is allowed or denied.
    direction string | SecurityRuleDirection
    The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
    networkSecurityGroupName string
    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 | SecurityRuleProtocol
    Network protocol this rule applies to.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    description string
    A description for this rule. Restricted to 140 chars.
    destinationAddressPrefixes string[]
    The destination address prefixes. CIDR or destination IP ranges.
    destinationPortRanges string[]
    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.
    securityRuleName string
    Name of the security rule.
    sourceAddressPrefixes string[]
    The CIDR or source IP ranges.
    sourcePortRanges string[]
    The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    access str | SecurityRuleAccess
    The network traffic is allowed or denied.
    direction str | SecurityRuleDirection
    The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
    network_security_group_name str
    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 | SecurityRuleProtocol
    Network protocol this rule applies to.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    description str
    A description for this rule. Restricted to 140 chars.
    destination_address_prefixes Sequence[str]
    The destination address prefixes. CIDR or destination IP ranges.
    destination_port_ranges Sequence[str]
    The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
    extended_location ExtendedLocationArgs
    The extendedLocation of the resource.
    security_rule_name str
    Name of the security rule.
    source_address_prefixes Sequence[str]
    The CIDR or source IP ranges.
    source_port_ranges Sequence[str]
    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.
    networkSecurityGroupName String
    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.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    description String
    A description for this rule. Restricted to 140 chars.
    destinationAddressPrefixes List<String>
    The destination address prefixes. CIDR or destination IP ranges.
    destinationPortRanges List<String>
    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.
    securityRuleName String
    Name of the security rule.
    sourceAddressPrefixes List<String>
    The CIDR or source IP ranges.
    sourcePortRanges List<String>
    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.AzureNative.AzureStackHCI.Outputs.SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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.AzureNative.AzureStackHCI.ExtendedLocationTypes
    The type of the extended location.
    Name string
    The name of the extended location.
    Type string | ExtendedLocationTypes
    The type of the extended location.
    name String
    The name of the extended location.
    type String | ExtendedLocationTypes
    The type of the extended location.
    name string
    The name of the extended location.
    type string | ExtendedLocationTypes
    The type of the extended location.
    name str
    The name of the extended location.
    type str | ExtendedLocationTypes
    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

    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.
    name string
    The name of the extended location.
    type string
    The type of the extended location.
    name str
    The name of the extended location.
    type str
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.

    ExtendedLocationTypes, ExtendedLocationTypesArgs

    CustomLocation
    CustomLocation
    ExtendedLocationTypesCustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CustomLocation
    CUSTOM_LOCATION
    CustomLocation
    "CustomLocation"
    CustomLocation

    SecurityRuleAccess, SecurityRuleAccessArgs

    Allow
    AllowNetwork traffic is allowed
    Deny
    DenyNetwork traffic is denied
    SecurityRuleAccessAllow
    AllowNetwork traffic is allowed
    SecurityRuleAccessDeny
    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
    SecurityRuleDirectionInbound
    InboundRule is evaluated on incoming traffic
    SecurityRuleDirectionOutbound
    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
    SecurityRuleProtocolTcp
    TcpTransmission Control Protocol
    SecurityRuleProtocolUdp
    UdpUser Datagram Protocol
    SecurityRuleProtocolIcmp
    IcmpInternet Control Message Protocol
    SecurityRuleProtocolAsterisk
    *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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi