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",
});
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")
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
})
}
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",
});
});
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());
}
}
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'
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 string
- The unique name of the resource.
- args NetworkAclRuleArgs
- 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 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 string
- The unique name of the resource.
- args NetworkAclRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkAclRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 string
- Specifies the action in the network ACL rule. Currently, the value can be allow or deny.
- Protocol 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.
- Destination
Ip stringAddress - 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 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.
- Ip
Version 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.
- Network
Acl stringRule Id - The ID of the acl rule.
- Source
Ip stringAddress - 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 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.
- Protocol 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.
- Destination
Ip stringAddress - 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 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.
- Ip
Version 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.
- Network
Acl stringRule Id - The ID of the acl rule.
- Source
Ip stringAddress - 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 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.
- protocol 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.
- destination
Ip StringAddress - 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 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.
- ip
Version 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.
- network
Acl StringRule Id - The ID of the acl rule.
- source
Ip StringAddress - 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 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.
- protocol 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.
- destination
Ip stringAddress - 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 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.
- ip
Version 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.
- network
Acl stringRule Id - The ID of the acl rule.
- source
Ip stringAddress - 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 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.
- protocol 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_ straddress - 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_ strrule_ id - The ID of the acl rule.
- source_
ip_ straddress - 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.
- protocol 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.
- destination
Ip StringAddress - 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 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.
- ip
Version 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.
- network
Acl StringRule Id - The ID of the acl rule.
- source
Ip StringAddress - 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 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
- 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
- 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.
- Destination
Ip stringAddress - 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 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.
- Ip
Version 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.
- Network
Acl stringRule Id - 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.
- Source
Ip stringAddress - 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 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.
- Destination
Ip stringAddress - 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 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.
- Ip
Version 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.
- Network
Acl stringRule Id - 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.
- Source
Ip stringAddress - 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 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.
- destination
Ip StringAddress - 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 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.
- ip
Version 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.
- network
Acl StringRule Id - 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.
- source
Ip StringAddress - 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 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.
- destination
Ip stringAddress - 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 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.
- ip
Version 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.
- network
Acl stringRule Id - 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.
- source
Ip stringAddress - 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 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_ straddress - 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_ strrule_ id - 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_ straddress - 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.
- destination
Ip StringAddress - 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 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.
- ip
Version 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.
- network
Acl StringRule Id - 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.
- source
Ip StringAddress - 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 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
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.