1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. FwRuleV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.FwRuleV2

Explore with Pulumi AI

Up-to-date reference of API arguments for VPC firewall rule you can get at documentation portal

Manages a v2 firewall rule resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const rule1 = new opentelekomcloud.FwRuleV2("rule1", {
    action: "deny",
    description: "drop TELNET traffic",
    destinationPort: "23",
    enabled: true,
    protocol: "tcp",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

rule1 = opentelekomcloud.FwRuleV2("rule1",
    action="deny",
    description="drop TELNET traffic",
    destination_port="23",
    enabled=True,
    protocol="tcp")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewFwRuleV2(ctx, "rule1", &opentelekomcloud.FwRuleV2Args{
			Action:          pulumi.String("deny"),
			Description:     pulumi.String("drop TELNET traffic"),
			DestinationPort: pulumi.String("23"),
			Enabled:         pulumi.Bool(true),
			Protocol:        pulumi.String("tcp"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var rule1 = new Opentelekomcloud.FwRuleV2("rule1", new()
    {
        Action = "deny",
        Description = "drop TELNET traffic",
        DestinationPort = "23",
        Enabled = true,
        Protocol = "tcp",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.FwRuleV2;
import com.pulumi.opentelekomcloud.FwRuleV2Args;
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 FwRuleV2("rule1", FwRuleV2Args.builder()
            .action("deny")
            .description("drop TELNET traffic")
            .destinationPort("23")
            .enabled("true")
            .protocol("tcp")
            .build());

    }
}
Copy
resources:
  rule1:
    type: opentelekomcloud:FwRuleV2
    properties:
      action: deny
      description: drop TELNET traffic
      destinationPort: '23'
      enabled: 'true'
      protocol: tcp
Copy

Example Ipv6 Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const rule1 = new opentelekomcloud.FwRuleV2("rule1", {
    action: "deny",
    description: "Ipv6 deny",
    destinationIpAddress: "2001:db8::",
    enabled: true,
    ipVersion: 6,
    protocol: "tcp",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

rule1 = opentelekomcloud.FwRuleV2("rule1",
    action="deny",
    description="Ipv6 deny",
    destination_ip_address="2001:db8::",
    enabled=True,
    ip_version=6,
    protocol="tcp")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewFwRuleV2(ctx, "rule1", &opentelekomcloud.FwRuleV2Args{
			Action:               pulumi.String("deny"),
			Description:          pulumi.String("Ipv6 deny"),
			DestinationIpAddress: pulumi.String("2001:db8::"),
			Enabled:              pulumi.Bool(true),
			IpVersion:            pulumi.Float64(6),
			Protocol:             pulumi.String("tcp"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var rule1 = new Opentelekomcloud.FwRuleV2("rule1", new()
    {
        Action = "deny",
        Description = "Ipv6 deny",
        DestinationIpAddress = "2001:db8::",
        Enabled = true,
        IpVersion = 6,
        Protocol = "tcp",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.FwRuleV2;
import com.pulumi.opentelekomcloud.FwRuleV2Args;
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 FwRuleV2("rule1", FwRuleV2Args.builder()
            .action("deny")
            .description("Ipv6 deny")
            .destinationIpAddress("2001:db8::")
            .enabled(true)
            .ipVersion(6)
            .protocol("tcp")
            .build());

    }
}
Copy
resources:
  rule1:
    type: opentelekomcloud:FwRuleV2
    properties:
      action: deny
      description: Ipv6 deny
      destinationIpAddress: '2001:db8::'
      enabled: true
      ipVersion: 6
      protocol: tcp
Copy

Create FwRuleV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FwRuleV2(name: string, args: FwRuleV2Args, opts?: CustomResourceOptions);
@overload
def FwRuleV2(resource_name: str,
             args: FwRuleV2Args,
             opts: Optional[ResourceOptions] = None)

@overload
def FwRuleV2(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             action: Optional[str] = None,
             protocol: Optional[str] = None,
             ip_version: Optional[float] = None,
             destination_port: Optional[str] = None,
             enabled: Optional[bool] = None,
             fw_rule_v2_id: Optional[str] = None,
             destination_ip_address: Optional[str] = None,
             name: 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 NewFwRuleV2(ctx *Context, name string, args FwRuleV2Args, opts ...ResourceOption) (*FwRuleV2, error)
public FwRuleV2(string name, FwRuleV2Args args, CustomResourceOptions? opts = null)
public FwRuleV2(String name, FwRuleV2Args args)
public FwRuleV2(String name, FwRuleV2Args args, CustomResourceOptions options)
type: opentelekomcloud:FwRuleV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FwRuleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FwRuleV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FwRuleV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FwRuleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FwRuleV2Args
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 fwRuleV2Resource = new Opentelekomcloud.FwRuleV2("fwRuleV2Resource", new()
{
    Action = "string",
    Protocol = "string",
    IpVersion = 0,
    DestinationPort = "string",
    Enabled = false,
    FwRuleV2Id = "string",
    DestinationIpAddress = "string",
    Name = "string",
    Description = "string",
    Region = "string",
    SourceIpAddress = "string",
    SourcePort = "string",
    TenantId = "string",
    ValueSpecs = 
    {
        { "string", "string" },
    },
});
Copy
example, err := opentelekomcloud.NewFwRuleV2(ctx, "fwRuleV2Resource", &opentelekomcloud.FwRuleV2Args{
Action: pulumi.String("string"),
Protocol: pulumi.String("string"),
IpVersion: pulumi.Float64(0),
DestinationPort: pulumi.String("string"),
Enabled: pulumi.Bool(false),
FwRuleV2Id: pulumi.String("string"),
DestinationIpAddress: pulumi.String("string"),
Name: 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"),
},
})
Copy
var fwRuleV2Resource = new FwRuleV2("fwRuleV2Resource", FwRuleV2Args.builder()
    .action("string")
    .protocol("string")
    .ipVersion(0)
    .destinationPort("string")
    .enabled(false)
    .fwRuleV2Id("string")
    .destinationIpAddress("string")
    .name("string")
    .description("string")
    .region("string")
    .sourceIpAddress("string")
    .sourcePort("string")
    .tenantId("string")
    .valueSpecs(Map.of("string", "string"))
    .build());
Copy
fw_rule_v2_resource = opentelekomcloud.FwRuleV2("fwRuleV2Resource",
    action="string",
    protocol="string",
    ip_version=0,
    destination_port="string",
    enabled=False,
    fw_rule_v2_id="string",
    destination_ip_address="string",
    name="string",
    description="string",
    region="string",
    source_ip_address="string",
    source_port="string",
    tenant_id="string",
    value_specs={
        "string": "string",
    })
Copy
const fwRuleV2Resource = new opentelekomcloud.FwRuleV2("fwRuleV2Resource", {
    action: "string",
    protocol: "string",
    ipVersion: 0,
    destinationPort: "string",
    enabled: false,
    fwRuleV2Id: "string",
    destinationIpAddress: "string",
    name: "string",
    description: "string",
    region: "string",
    sourceIpAddress: "string",
    sourcePort: "string",
    tenantId: "string",
    valueSpecs: {
        string: "string",
    },
});
Copy
type: opentelekomcloud:FwRuleV2
properties:
    action: string
    description: string
    destinationIpAddress: string
    destinationPort: string
    enabled: false
    fwRuleV2Id: string
    ipVersion: 0
    name: string
    protocol: string
    region: string
    sourceIpAddress: string
    sourcePort: string
    tenantId: string
    valueSpecs:
        string: string
Copy

FwRuleV2 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 FwRuleV2 resource accepts the following input properties:

Action This property is required. 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 This property is required. string
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol of an existing firewall rule.
Description string
A description for the firewall rule. Changing this updates the description of an existing firewall rule.
DestinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
DestinationPort 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.
FwRuleV2Id string
IpVersion double
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
SourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
SourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
TenantId 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.
ValueSpecs Dictionary<string, string>
Map of additional options.
Action This property is required. 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 This property is required. string
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol of an existing firewall rule.
Description string
A description for the firewall rule. Changing this updates the description of an existing firewall rule.
DestinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
DestinationPort 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.
FwRuleV2Id string
IpVersion float64
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
SourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
SourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
TenantId 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.
ValueSpecs map[string]string
Map of additional options.
action This property is required. 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 This property is required. String
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol of an existing firewall rule.
description String
A description for the firewall rule. Changing this updates the description of an existing firewall rule.
destinationIpAddress String
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id String
ipVersion Double
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
sourceIpAddress String
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort String
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs Map<String,String>
Map of additional options.
action This property is required. 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 This property is required. string
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol of an existing firewall rule.
description string
A description for the firewall rule. Changing this updates the description of an existing firewall rule.
destinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id string
ipVersion 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
sourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs {[key: string]: string}
Map of additional options.
action This property is required. 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 This property is required. str
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol 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_address str
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.
fw_rule_v2_id str
ip_version float
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
source_ip_address str
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 This property is required. 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 This property is required. String
The protocol type on which the firewall rule operates. Valid values are: tcp, udp, icmp, and any. Changing this updates the protocol of an existing firewall rule.
description String
A description for the firewall rule. Changing this updates the description of an existing firewall rule.
destinationIpAddress String
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id String
ipVersion 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
sourceIpAddress String
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort String
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs Map<String>
Map of additional options.

Outputs

All input properties are implicitly available as output properties. Additionally, the FwRuleV2 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 FwRuleV2 Resource

Get an existing FwRuleV2 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?: FwRuleV2State, opts?: CustomResourceOptions): FwRuleV2
@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,
        fw_rule_v2_id: Optional[str] = None,
        ip_version: Optional[float] = 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) -> FwRuleV2
func GetFwRuleV2(ctx *Context, name string, id IDInput, state *FwRuleV2State, opts ...ResourceOption) (*FwRuleV2, error)
public static FwRuleV2 Get(string name, Input<string> id, FwRuleV2State? state, CustomResourceOptions? opts = null)
public static FwRuleV2 get(String name, Output<String> id, FwRuleV2State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:FwRuleV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
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.
DestinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
DestinationPort 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.
FwRuleV2Id string
IpVersion double
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, and any. Changing this updates the protocol of an existing firewall rule.
Region string
SourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
SourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
TenantId 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.
ValueSpecs 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.
DestinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
DestinationPort 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.
FwRuleV2Id string
IpVersion float64
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, and any. Changing this updates the protocol of an existing firewall rule.
Region string
SourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
SourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
TenantId 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.
ValueSpecs 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.
destinationIpAddress String
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id String
ipVersion Double
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, and any. Changing this updates the protocol of an existing firewall rule.
region String
sourceIpAddress String
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort String
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs 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.
destinationIpAddress string
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id string
ipVersion 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, and any. Changing this updates the protocol of an existing firewall rule.
region string
sourceIpAddress string
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort string
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs {[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_address str
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.
fw_rule_v2_id str
ip_version float
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, and any. Changing this updates the protocol of an existing firewall rule.
region str
source_ip_address str
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.
destinationIpAddress String
The destination IP address on which the firewall rule operates. Changing this updates the destination_ip_address of an existing firewall rule.
destinationPort 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.
fwRuleV2Id String
ipVersion 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, and any. Changing this updates the protocol of an existing firewall rule.
region String
sourceIpAddress String
The source IP address on which the firewall rule operates. Changing this updates the source_ip_address of an existing firewall rule.
sourcePort String
The source port on which the firewall rule operates. Changing this updates the source_port of an existing firewall rule.
tenantId 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.
valueSpecs Map<String>
Map of additional options.

Import

Firewall Rules can be imported using the id, e.g.

$ pulumi import opentelekomcloud:index/fwRuleV2:FwRuleV2 rule_1 8dbc0c28-e49c-463f-b712-5c5d1bbac327
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.