1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NetworkAclRule
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NetworkAclRule

Explore with Pulumi AI

Manages a network ACL rule resource within FlexibleEngine.

Example Usage

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

const rule1 = new flexibleengine.NetworkAclRule("rule1", {
    action: "deny",
    destinationIpAddress: "4.3.2.0/24",
    destinationPort: "555",
    protocol: "udp",
    sourceIpAddress: "1.2.3.4",
    sourcePort: "444",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

rule1 = flexibleengine.NetworkAclRule("rule1",
    action="deny",
    destination_ip_address="4.3.2.0/24",
    destination_port="555",
    protocol="udp",
    source_ip_address="1.2.3.4",
    source_port="444")
Copy
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.NewNetworkAclRule(ctx, "rule1", &flexibleengine.NetworkAclRuleArgs{
			Action:               pulumi.String("deny"),
			DestinationIpAddress: pulumi.String("4.3.2.0/24"),
			DestinationPort:      pulumi.String("555"),
			Protocol:             pulumi.String("udp"),
			SourceIpAddress:      pulumi.String("1.2.3.4"),
			SourcePort:           pulumi.String("444"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var rule1 = new Flexibleengine.NetworkAclRule("rule1", new()
    {
        Action = "deny",
        DestinationIpAddress = "4.3.2.0/24",
        DestinationPort = "555",
        Protocol = "udp",
        SourceIpAddress = "1.2.3.4",
        SourcePort = "444",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.NetworkAclRule;
import com.pulumi.flexibleengine.NetworkAclRuleArgs;
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 NetworkAclRule("rule1", NetworkAclRuleArgs.builder()
            .action("deny")
            .destinationIpAddress("4.3.2.0/24")
            .destinationPort("555")
            .protocol("udp")
            .sourceIpAddress("1.2.3.4")
            .sourcePort("444")
            .build());

    }
}
Copy
resources:
  rule1:
    type: flexibleengine:NetworkAclRule
    properties:
      action: deny
      destinationIpAddress: 4.3.2.0/24
      destinationPort: '555'
      protocol: udp
      sourceIpAddress: 1.2.3.4
      sourcePort: '444'
Copy

Create NetworkAclRule Resource

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

Constructor syntax

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

@overload
def NetworkAclRule(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   action: Optional[str] = None,
                   protocol: Optional[str] = None,
                   description: Optional[str] = None,
                   destination_ip_address: Optional[str] = None,
                   destination_port: Optional[str] = None,
                   enabled: Optional[bool] = None,
                   ip_version: Optional[float] = None,
                   name: Optional[str] = None,
                   network_acl_rule_id: Optional[str] = None,
                   source_ip_address: Optional[str] = None,
                   source_port: Optional[str] = None)
func NewNetworkAclRule(ctx *Context, name string, args NetworkAclRuleArgs, opts ...ResourceOption) (*NetworkAclRule, error)
public NetworkAclRule(string name, NetworkAclRuleArgs args, CustomResourceOptions? opts = null)
public NetworkAclRule(String name, NetworkAclRuleArgs args)
public NetworkAclRule(String name, NetworkAclRuleArgs args, CustomResourceOptions options)
type: flexibleengine:NetworkAclRule
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. NetworkAclRuleArgs
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. NetworkAclRuleArgs
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. NetworkAclRuleArgs
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. NetworkAclRuleArgs
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. NetworkAclRuleArgs
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 networkAclRuleResource = new Flexibleengine.NetworkAclRule("networkAclRuleResource", new()
{
    Action = "string",
    Protocol = "string",
    Description = "string",
    DestinationIpAddress = "string",
    DestinationPort = "string",
    Enabled = false,
    IpVersion = 0,
    Name = "string",
    NetworkAclRuleId = "string",
    SourceIpAddress = "string",
    SourcePort = "string",
});
Copy
example, err := flexibleengine.NewNetworkAclRule(ctx, "networkAclRuleResource", &flexibleengine.NetworkAclRuleArgs{
Action: pulumi.String("string"),
Protocol: pulumi.String("string"),
Description: pulumi.String("string"),
DestinationIpAddress: pulumi.String("string"),
DestinationPort: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IpVersion: pulumi.Float64(0),
Name: pulumi.String("string"),
NetworkAclRuleId: pulumi.String("string"),
SourceIpAddress: pulumi.String("string"),
SourcePort: pulumi.String("string"),
})
Copy
var networkAclRuleResource = new NetworkAclRule("networkAclRuleResource", NetworkAclRuleArgs.builder()
    .action("string")
    .protocol("string")
    .description("string")
    .destinationIpAddress("string")
    .destinationPort("string")
    .enabled(false)
    .ipVersion(0)
    .name("string")
    .networkAclRuleId("string")
    .sourceIpAddress("string")
    .sourcePort("string")
    .build());
Copy
network_acl_rule_resource = flexibleengine.NetworkAclRule("networkAclRuleResource",
    action="string",
    protocol="string",
    description="string",
    destination_ip_address="string",
    destination_port="string",
    enabled=False,
    ip_version=0,
    name="string",
    network_acl_rule_id="string",
    source_ip_address="string",
    source_port="string")
Copy
const networkAclRuleResource = new flexibleengine.NetworkAclRule("networkAclRuleResource", {
    action: "string",
    protocol: "string",
    description: "string",
    destinationIpAddress: "string",
    destinationPort: "string",
    enabled: false,
    ipVersion: 0,
    name: "string",
    networkAclRuleId: "string",
    sourceIpAddress: "string",
    sourcePort: "string",
});
Copy
type: flexibleengine:NetworkAclRule
properties:
    action: string
    description: string
    destinationIpAddress: string
    destinationPort: string
    enabled: false
    ipVersion: 0
    name: string
    networkAclRuleId: string
    protocol: string
    sourceIpAddress: string
    sourcePort: string
Copy

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

Action This property is required. string
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
Protocol This property is required. string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
Description string
Specifies the description for the network ACL rule.
DestinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
DestinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Enabled bool
Enabled status for the network ACL rule. Defaults to true.
IpVersion double
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
Name string
Specifies a unique name for the network ACL rule.
NetworkAclRuleId string
The ID of the acl rule.
SourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
SourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Action This property is required. string
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
Protocol This property is required. string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
Description string
Specifies the description for the network ACL rule.
DestinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
DestinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Enabled bool
Enabled status for the network ACL rule. Defaults to true.
IpVersion float64
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
Name string
Specifies a unique name for the network ACL rule.
NetworkAclRuleId string
The ID of the acl rule.
SourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
SourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action This property is required. String
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
protocol This property is required. String
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
description String
Specifies the description for the network ACL rule.
destinationIpAddress String
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort String
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled Boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion Double
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name String
Specifies a unique name for the network ACL rule.
networkAclRuleId String
The ID of the acl rule.
sourceIpAddress String
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort String
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action This property is required. string
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
protocol This property is required. string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
description string
Specifies the description for the network ACL rule.
destinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion number
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name string
Specifies a unique name for the network ACL rule.
networkAclRuleId string
The ID of the acl rule.
sourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action This property is required. str
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
protocol This property is required. str
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
description str
Specifies the description for the network ACL rule.
destination_ip_address str
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destination_port str
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled bool
Enabled status for the network ACL rule. Defaults to true.
ip_version float
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name str
Specifies a unique name for the network ACL rule.
network_acl_rule_id str
The ID of the acl rule.
source_ip_address str
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
source_port str
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action This property is required. String
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
protocol This property is required. String
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
description String
Specifies the description for the network ACL rule.
destinationIpAddress String
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort String
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled Boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion Number
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name String
Specifies a unique name for the network ACL rule.
networkAclRuleId String
The ID of the acl rule.
sourceIpAddress String
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort String
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.

Outputs

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

Get an existing NetworkAclRule 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?: NetworkAclRuleState, opts?: CustomResourceOptions): NetworkAclRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        description: Optional[str] = None,
        destination_ip_address: Optional[str] = None,
        destination_port: Optional[str] = None,
        enabled: Optional[bool] = None,
        ip_version: Optional[float] = None,
        name: Optional[str] = None,
        network_acl_rule_id: Optional[str] = None,
        protocol: Optional[str] = None,
        source_ip_address: Optional[str] = None,
        source_port: Optional[str] = None) -> NetworkAclRule
func GetNetworkAclRule(ctx *Context, name string, id IDInput, state *NetworkAclRuleState, opts ...ResourceOption) (*NetworkAclRule, error)
public static NetworkAclRule Get(string name, Input<string> id, NetworkAclRuleState? state, CustomResourceOptions? opts = null)
public static NetworkAclRule get(String name, Output<String> id, NetworkAclRuleState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:NetworkAclRule    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
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
Description string
Specifies the description for the network ACL rule.
DestinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
DestinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Enabled bool
Enabled status for the network ACL rule. Defaults to true.
IpVersion double
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
Name string
Specifies a unique name for the network ACL rule.
NetworkAclRuleId string
The ID of the acl rule.
Protocol string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
SourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
SourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Action string
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
Description string
Specifies the description for the network ACL rule.
DestinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
DestinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
Enabled bool
Enabled status for the network ACL rule. Defaults to true.
IpVersion float64
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
Name string
Specifies a unique name for the network ACL rule.
NetworkAclRuleId string
The ID of the acl rule.
Protocol string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
SourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
SourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action String
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
description String
Specifies the description for the network ACL rule.
destinationIpAddress String
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort String
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled Boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion Double
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name String
Specifies a unique name for the network ACL rule.
networkAclRuleId String
The ID of the acl rule.
protocol String
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
sourceIpAddress String
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort String
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action string
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
description string
Specifies the description for the network ACL rule.
destinationIpAddress string
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort string
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion number
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name string
Specifies a unique name for the network ACL rule.
networkAclRuleId string
The ID of the acl rule.
protocol string
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
sourceIpAddress string
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort string
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action str
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
description str
Specifies the description for the network ACL rule.
destination_ip_address str
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destination_port str
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled bool
Enabled status for the network ACL rule. Defaults to true.
ip_version float
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name str
Specifies a unique name for the network ACL rule.
network_acl_rule_id str
The ID of the acl rule.
protocol str
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
source_ip_address str
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
source_port str
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
action String
Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
description String
Specifies the description for the network ACL rule.
destinationIpAddress String
Specifies the destination IP address to which the traffic is allowed. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
destinationPort String
Specifies the destination port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.
enabled Boolean
Enabled status for the network ACL rule. Defaults to true.
ipVersion Number
Specifies the IP version, either 4 (default) or 6. This parameter is available after the IPv6 function is enabled.
name String
Specifies a unique name for the network ACL rule.
networkAclRuleId String
The ID of the acl rule.
protocol String
Specifies the protocol supported by the network ACL rule. Valid values are: tcp, udp, icmp and any.
sourceIpAddress String
Specifies the source IP address that the traffic is allowed from. The default value is 0.0.0.0/0. For example: xxx.xxx.xxx.xxx (IP address), xxx.xxx.xxx.0/24 (CIDR block).
sourcePort String
Specifies the source port number or port number range. The value ranges from 1 to 65535. For a port number range, enter two port numbers connected by a hyphen (-). For example, 1-100.

Import

network ACL rules can be imported using the id, e.g.

$ pulumi import flexibleengine:index/networkAclRule:NetworkAclRule rule_1 89a84b28-4cc2-4859-9885-c67e802a46a3
Copy

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.