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",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
rule1 = opentelekomcloud.FwRuleV2("rule1",
action="deny",
description="drop TELNET traffic",
destination_port="23",
enabled=True,
protocol="tcp")
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
})
}
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",
});
});
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());
}
}
resources:
rule1:
type: opentelekomcloud:FwRuleV2
properties:
action: deny
description: drop TELNET traffic
destinationPort: '23'
enabled: 'true'
protocol: tcp
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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
rule1:
type: opentelekomcloud:FwRuleV2
properties:
action: deny
description: Ipv6 deny
destinationIpAddress: '2001:db8::'
enabled: true
ipVersion: 6
protocol: tcp
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 string
- The unique name of the resource.
- args FwRuleV2Args
- 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 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 string
- The unique name of the resource.
- args FwRuleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FwRuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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" },
},
});
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"),
},
})
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());
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",
})
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",
},
});
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
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 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. - Fw
Rule stringV2Id - Ip
Version 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
- 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. - Fw
Rule stringV2Id - Ip
Version 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
- 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. - fw
Rule StringV2Id - ip
Version 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
- 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. - fw
Rule stringV2Id - 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
- 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. - fw_
rule_ strv2_ id - 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_ 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. - fw
Rule StringV2Id - 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
- 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 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
- 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. - Fw
Rule stringV2Id - Ip
Version 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
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Region string
- 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. - Fw
Rule stringV2Id - Ip
Version 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
, andany
. Changing this updates theprotocol
of an existing firewall rule. - Region string
- 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. - fw
Rule StringV2Id - ip
Version 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
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region String
- 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. - fw
Rule stringV2Id - 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
- 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. - fw_
rule_ strv2_ id - 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
, andany
. Changing this updates theprotocol
of an existing firewall rule. - region str
- 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. - fw
Rule StringV2Id - 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
- 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 opentelekomcloud:index/fwRuleV2:FwRuleV2 rule_1 8dbc0c28-e49c-463f-b712-5c5d1bbac327
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.