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.
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
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.
- Network
Security 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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address List<string>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Port List<string>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Extended
Location Pulumi.Azure Native. Azure Stack HCI. Inputs. Extended Location - The extendedLocation of the resource.
- Security
Rule stringName - Name of the security rule.
- Source
Address List<string>Prefixes - The CIDR or source IP ranges.
- Source
Port 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 | Security
Rule Access - The network traffic is allowed or denied.
- Direction
string | Security
Rule Direction - The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- Network
Security 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 | Security
Rule Protocol - Network protocol this rule applies to.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address []stringPrefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Port []stringRanges - 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 stringName - Name of the security rule.
- Source
Address []stringPrefixes - The CIDR or source IP ranges.
- Source
Port []stringRanges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access
String | Security
Rule Access - The network traffic is allowed or denied.
- direction
String | Security
Rule Direction - The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- network
Security 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 | Security
Rule Protocol - Network protocol this rule applies to.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port List<String>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location ExtendedLocation - The extendedLocation of the resource.
- security
Rule StringName - Name of the security rule.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Port 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 | Security
Rule Access - The network traffic is allowed or denied.
- direction
string | Security
Rule Direction - The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- network
Security 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 | Security
Rule Protocol - Network protocol this rule applies to.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- description string
- A description for this rule. Restricted to 140 chars.
- destination
Address string[]Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port string[]Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location ExtendedLocation - The extendedLocation of the resource.
- security
Rule stringName - Name of the security rule.
- source
Address string[]Prefixes - The CIDR or source IP ranges.
- source
Port string[]Ranges - The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- access
str | Security
Rule Access - The network traffic is allowed or denied.
- direction
str | Security
Rule 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 | Security
Rule 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.
- network
Security 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Port List<String>Ranges - The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- extended
Location Property Map - The extendedLocation of the resource.
- security
Rule StringName - Name of the security rule.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Port 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
- Provisioning
State string - Provisioning state of the SR
- System
Data 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
- Provisioning
State string - Provisioning state of the SR
- System
Data 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
- provisioning
State String - Provisioning state of the SR
- system
Data 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
- provisioning
State string - Provisioning state of the SR
- system
Data 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
- provisioning
State String - Provisioning state of the SR
- system
Data 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 | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | Extended
Location Types - The type of the extended location.
- name string
- The name of the extended location.
- type
string | Extended
Location Types - The type of the extended location.
- name str
- The name of the extended location.
- type
str | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | "Custom
Location" - The type of the extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs
ExtendedLocationTypes, ExtendedLocationTypesArgs
- Custom
Location - CustomLocation
- Extended
Location Types Custom Location - CustomLocation
- Custom
Location - CustomLocation
- Custom
Location - CustomLocation
- CUSTOM_LOCATION
- CustomLocation
- "Custom
Location" - CustomLocation
SecurityRuleAccess, SecurityRuleAccessArgs
- Allow
- AllowNetwork traffic is allowed
- Deny
- DenyNetwork traffic is denied
- Security
Rule Access Allow - AllowNetwork traffic is allowed
- Security
Rule 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
- Security
Rule Direction Inbound - InboundRule is evaluated on incoming traffic
- Security
Rule 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
- Security
Rule Protocol Tcp - TcpTransmission Control Protocol
- Security
Rule Protocol Udp - UdpUser Datagram Protocol
- Security
Rule Protocol Icmp - IcmpInternet Control Message Protocol
- Security
Rule 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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