flexibleengine.FwRuleV2
Explore with Pulumi AI
Manages a v2 firewall rule resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const rule1 = new flexibleengine.FwRuleV2("rule1", {
action: "deny",
description: "drop TELNET traffic",
destinationPort: "23",
enabled: true,
protocol: "tcp",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
rule1 = flexibleengine.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/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewFwRuleV2(ctx, "rule1", &flexibleengine.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 Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var rule1 = new Flexibleengine.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.flexibleengine.FwRuleV2;
import com.pulumi.flexibleengine.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: flexibleengine:FwRuleV2
properties:
action: deny
description: drop TELNET traffic
destinationPort: '23'
enabled: 'true'
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: flexibleengine: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 Flexibleengine.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",
});
example, err := flexibleengine.NewFwRuleV2(ctx, "fwRuleV2Resource", &flexibleengine.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"),
})
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")
.build());
fw_rule_v2_resource = flexibleengine.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")
const fwRuleV2Resource = new flexibleengine.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",
});
type: flexibleengine: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
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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - Value
Specs Dictionary<string, string>
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - Value
Specs map[string]string
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - value
Specs Map<String,String>
- 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 - The ID of the 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 v2 networking 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 - value
Specs {[key: string]: string}
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - value_
specs Mapping[str, str]
- 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 - The ID of the 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 v2 networking 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 - value
Specs Map<String>
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: flexibleengine: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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - Value
Specs Dictionary<string, string>
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - Value
Specs map[string]string
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - value
Specs Map<String,String>
- 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 - The ID of the 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 v2 networking 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 - value
Specs {[key: string]: string}
- 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 - The ID of the rule.
- 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
- The region in which to obtain the v2 networking 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 - value_
specs Mapping[str, str]
- 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 - The ID of the 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 v2 networking 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 - value
Specs Map<String>
Import
Firewall Rules can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/fwRuleV2:FwRuleV2 rule_1 8dbc0c28-e49c-463f-b712-5c5d1bbac327
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.