openstack.firewall.Rule
Explore with Pulumi AI
Manages a v1 firewall rule resource within OpenStack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const rule1 = new openstack.firewall.Rule("rule_1", {
name: "my_rule",
description: "drop TELNET traffic",
action: "deny",
protocol: "tcp",
destinationPort: "23",
enabled: true,
});
import pulumi
import pulumi_openstack as openstack
rule1 = openstack.firewall.Rule("rule_1",
name="my_rule",
description="drop TELNET traffic",
action="deny",
protocol="tcp",
destination_port="23",
enabled=True)
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/firewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewRule(ctx, "rule_1", &firewall.RuleArgs{
Name: pulumi.String("my_rule"),
Description: pulumi.String("drop TELNET traffic"),
Action: pulumi.String("deny"),
Protocol: pulumi.String("tcp"),
DestinationPort: pulumi.String("23"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var rule1 = new OpenStack.Firewall.Rule("rule_1", new()
{
Name = "my_rule",
Description = "drop TELNET traffic",
Action = "deny",
Protocol = "tcp",
DestinationPort = "23",
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.firewall.Rule;
import com.pulumi.openstack.firewall.RuleArgs;
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 rule1 = new Rule("rule1", RuleArgs.builder()
.name("my_rule")
.description("drop TELNET traffic")
.action("deny")
.protocol("tcp")
.destinationPort("23")
.enabled("true")
.build());
}
}
resources:
rule1:
type: openstack:firewall:Rule
name: rule_1
properties:
name: my_rule
description: drop TELNET traffic
action: deny
protocol: tcp
destinationPort: '23'
enabled: 'true'
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
@overload
def Rule(resource_name: str,
args: RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
protocol: Optional[str] = None,
name: Optional[str] = None,
destination_port: Optional[str] = None,
enabled: Optional[bool] = None,
ip_version: Optional[int] = None,
destination_ip_address: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None,
source_ip_address: Optional[str] = None,
source_port: Optional[str] = None,
tenant_id: Optional[str] = None,
value_specs: Optional[Mapping[str, str]] = None)
func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
type: openstack:firewall:Rule
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 RuleArgs
- 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 RuleArgs
- 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 RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleArgs
- 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 ruleResource = new OpenStack.Firewall.Rule("ruleResource", new()
{
Action = "string",
Protocol = "string",
Name = "string",
DestinationPort = "string",
Enabled = false,
IpVersion = 0,
DestinationIpAddress = "string",
Description = "string",
Region = "string",
SourceIpAddress = "string",
SourcePort = "string",
TenantId = "string",
ValueSpecs =
{
{ "string", "string" },
},
});
example, err := firewall.NewRule(ctx, "ruleResource", &firewall.RuleArgs{
Action: pulumi.String("string"),
Protocol: pulumi.String("string"),
Name: pulumi.String("string"),
DestinationPort: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IpVersion: pulumi.Int(0),
DestinationIpAddress: pulumi.String("string"),
Description: pulumi.String("string"),
Region: pulumi.String("string"),
SourceIpAddress: pulumi.String("string"),
SourcePort: pulumi.String("string"),
TenantId: pulumi.String("string"),
ValueSpecs: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var ruleResource = new Rule("ruleResource", RuleArgs.builder()
.action("string")
.protocol("string")
.name("string")
.destinationPort("string")
.enabled(false)
.ipVersion(0)
.destinationIpAddress("string")
.description("string")
.region("string")
.sourceIpAddress("string")
.sourcePort("string")
.tenantId("string")
.valueSpecs(Map.of("string", "string"))
.build());
rule_resource = openstack.firewall.Rule("ruleResource",
action="string",
protocol="string",
name="string",
destination_port="string",
enabled=False,
ip_version=0,
destination_ip_address="string",
description="string",
region="string",
source_ip_address="string",
source_port="string",
tenant_id="string",
value_specs={
"string": "string",
})
const ruleResource = new openstack.firewall.Rule("ruleResource", {
action: "string",
protocol: "string",
name: "string",
destinationPort: "string",
enabled: false,
ipVersion: 0,
destinationIpAddress: "string",
description: "string",
region: "string",
sourceIpAddress: "string",
sourcePort: "string",
tenantId: "string",
valueSpecs: {
string: "string",
},
});
type: openstack:firewall:Rule
properties:
action: string
description: string
destinationIpAddress: string
destinationPort: string
enabled: false
ipVersion: 0
name: string
protocol: string
region: string
sourceIpAddress: string
sourcePort: string
tenantId: string
valueSpecs:
string: string
Rule 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 Rule resource accepts the following input properties:
- Action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - Protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - Destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - Destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - Enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - Ip
Version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - Name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - Region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - Source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - Source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - Tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- Value
Specs Dictionary<string, string> - Map of additional options.
- Action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - Protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - Destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - Destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - Enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - Ip
Version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - Name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - Region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - Source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - Source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - Tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- Value
Specs map[string]string - Map of additional options.
- action String
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - protocol String
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - description String
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip StringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port String - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled Boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version Integer - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name String
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - region String
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip StringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port String - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id String - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs Map<String,String> - Map of additional options.
- action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version number - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs {[key: string]: string} - Map of additional options.
- action str
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - protocol str
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - description str
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination_
ip_ straddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination_
port str - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip_
version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name str
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - region str
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source_
ip_ straddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source_
port str - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant_
id str - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value_
specs Mapping[str, str] - Map of additional options.
- action String
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - protocol String
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - description String
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip StringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port String - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled Boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version Number - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name String
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - region String
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip StringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port String - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id String - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs Map<String> - Map of additional options.
Outputs
All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Rule Resource
Get an existing Rule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RuleState, opts?: CustomResourceOptions): Rule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
description: Optional[str] = None,
destination_ip_address: Optional[str] = None,
destination_port: Optional[str] = None,
enabled: Optional[bool] = None,
ip_version: Optional[int] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
region: Optional[str] = None,
source_ip_address: Optional[str] = None,
source_port: Optional[str] = None,
tenant_id: Optional[str] = None,
value_specs: Optional[Mapping[str, str]] = None) -> Rule
func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - Description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - Destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - Destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - Enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - Ip
Version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - Name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - Protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - Source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - Source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - Tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- Value
Specs Dictionary<string, string> - Map of additional options.
- Action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - Description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - Destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - Destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - Enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - Ip
Version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - Name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - Protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - Source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - Source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - Tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- Value
Specs map[string]string - Map of additional options.
- action String
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - description String
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip StringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port String - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled Boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version Integer - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name String
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - protocol String
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region String
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip StringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port String - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id String - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs Map<String,String> - Map of additional options.
- action string
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - description string
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip stringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port string - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version number - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name string
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - protocol string
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region string
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip stringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port string - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id string - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs {[key: string]: string} - Map of additional options.
- action str
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - description str
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination_
ip_ straddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination_
port str - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled bool
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip_
version int - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name str
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - protocol str
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region str
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source_
ip_ straddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source_
port str - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant_
id str - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value_
specs Mapping[str, str] - Map of additional options.
- action String
- Action to be taken ( must be "allow" or "deny") when the
firewall rule matches. Changing this updates the
action
of an existing firewall rule. - description String
- A description for the firewall rule. Changing this
updates the
description
of an existing firewall rule. - destination
Ip StringAddress - The destination IP address on which the
firewall rule operates. Changing this updates the
destination_ip_address
of an existing firewall rule. - destination
Port String - The destination port on which the firewall
rule operates. Changing this updates the
destination_port
of an existing firewall rule. - enabled Boolean
- Enabled status for the firewall rule (must be "true"
or "false" if provided - defaults to "true"). Changing this updates the
enabled
status of an existing firewall rule. - ip
Version Number - IP version, either 4 (default) or 6. Changing this
updates the
ip_version
of an existing firewall rule. - name String
- A unique name for the firewall rule. Changing this
updates the
name
of an existing firewall rule. - protocol String
- The protocol type on which the firewall rule operates.
Valid values are:
tcp
,udp
,icmp
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region String
- The region in which to obtain the v1 Compute client.
A Compute client is needed to create a firewall rule. If omitted, the
region
argument of the provider is used. Changing this creates a new firewall rule. - source
Ip StringAddress - The source IP address on which the firewall
rule operates. Changing this updates the
source_ip_address
of an existing firewall rule. - source
Port String - The source port on which the firewall
rule operates. Changing this updates the
source_port
of an existing firewall rule. - tenant
Id String - The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.
- value
Specs Map<String> - Map of additional options.
Import
Firewall Rules can be imported using the id
, e.g.
$ pulumi import openstack:firewall/rule:Rule rule_1 8dbc0c28-e49c-463f-b712-5c5d1bbac327
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.