mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Adding/updating the docs to reflect the changes in the provider
This commit is contained in:
parent
8f223c020b
commit
edc8b91d09
@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
layout: "cloudstack"
|
||||||
|
page_title: "CloudStack: cloudstack_egress_firewall"
|
||||||
|
sidebar_current: "docs-cloudstack-resource-egress-firewall"
|
||||||
|
description: |-
|
||||||
|
Creates egress firewall rules for a given network.
|
||||||
|
---
|
||||||
|
|
||||||
|
# cloudstack\_egress\_firewall
|
||||||
|
|
||||||
|
Creates egress firewall rules for a given network.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
resource "cloudstack_egress_firewall" "default" {
|
||||||
|
network = "test-network"
|
||||||
|
|
||||||
|
rule {
|
||||||
|
source_cidr = "10.0.0.0/8"
|
||||||
|
protocol = "tcp"
|
||||||
|
ports = ["80", "1000-2000"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Reference
|
||||||
|
|
||||||
|
The following arguments are supported:
|
||||||
|
|
||||||
|
* `network` - (Required) The network for which to create the egress firewall
|
||||||
|
rules. Changing this forces a new resource to be created.
|
||||||
|
|
||||||
|
* `managed` - (Optional) USE WITH CAUTION! If enabled all the egress firewall
|
||||||
|
rules for this network will be managed by this resource. This means it will
|
||||||
|
delete all firewall rules that are not in your config! (defaults false)
|
||||||
|
|
||||||
|
* `rule` - (Optional) Can be specified multiple times. Each rule block supports
|
||||||
|
fields documented below. If `managed = false` at least one rule is required!
|
||||||
|
|
||||||
|
The `rule` block supports:
|
||||||
|
|
||||||
|
* `source_cidr` - (Required) The source CIDR to allow access to the given ports.
|
||||||
|
|
||||||
|
* `protocol` - (Required) The name of the protocol to allow. Valid options are:
|
||||||
|
`tcp`, `udp` and `icmp`.
|
||||||
|
|
||||||
|
* `icmp_type` - (Optional) The ICMP type to allow. This can only be specified if
|
||||||
|
the protocol is ICMP.
|
||||||
|
|
||||||
|
* `icmp_code` - (Optional) The ICMP code to allow. This can only be specified if
|
||||||
|
the protocol is ICMP.
|
||||||
|
|
||||||
|
* `ports` - (Optional) List of ports and/or port ranges to allow. This can only
|
||||||
|
be specified if the protocol is TCP or UDP.
|
||||||
|
|
||||||
|
## Attributes Reference
|
||||||
|
|
||||||
|
The following attributes are exported:
|
||||||
|
|
||||||
|
* `ID` - The network ID for which the egress firewall rules are created.
|
@ -31,8 +31,12 @@ The following arguments are supported:
|
|||||||
* `ipaddress` - (Required) The IP address for which to create the firewall rules.
|
* `ipaddress` - (Required) The IP address for which to create the firewall rules.
|
||||||
Changing this forces a new resource to be created.
|
Changing this forces a new resource to be created.
|
||||||
|
|
||||||
* `rule` - (Required) Can be specified multiple times. Each rule block supports
|
* `managed` - (Optional) USE WITH CAUTION! If enabled all the firewall rules for
|
||||||
fields documented below.
|
this IP address will be managed by this resource. This means it will delete
|
||||||
|
all firewall rules that are not in your config! (defaults false)
|
||||||
|
|
||||||
|
* `rule` - (Optional) Can be specified multiple times. Each rule block supports
|
||||||
|
fields documented below. If `managed = false` at least one rule is required!
|
||||||
|
|
||||||
The `rule` block supports:
|
The `rule` block supports:
|
||||||
|
|
||||||
@ -54,4 +58,4 @@ The `rule` block supports:
|
|||||||
|
|
||||||
The following attributes are exported:
|
The following attributes are exported:
|
||||||
|
|
||||||
* `ipaddress` - The IP address for which the firewall rules are created.
|
* `ID` - The IP address ID for which the firewall rules are created.
|
||||||
|
@ -23,9 +23,12 @@ resource "cloudstack_network_acl" "default" {
|
|||||||
|
|
||||||
The following arguments are supported:
|
The following arguments are supported:
|
||||||
|
|
||||||
* `name` - (Required) The name of the ACL. Changing this forces a new resource to be created.
|
* `name` - (Required) The name of the ACL. Changing this forces a new resource
|
||||||
* `description` - (Optional) The description of the ACL. Changing this forces a new resource to be created.
|
to be created.
|
||||||
* `vpc` - (Required) The name of the VPC to create this ACL for. Changing this forces a new resource to be created.
|
* `description` - (Optional) The description of the ACL. Changing this forces a
|
||||||
|
new resource to be created.
|
||||||
|
* `vpc` - (Required) The name of the VPC to create this ACL for. Changing this
|
||||||
|
forces a new resource to be created.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
@ -33,8 +33,12 @@ The following arguments are supported:
|
|||||||
* `aclid` - (Required) The network ACL ID for which to create the rules.
|
* `aclid` - (Required) The network ACL ID for which to create the rules.
|
||||||
Changing this forces a new resource to be created.
|
Changing this forces a new resource to be created.
|
||||||
|
|
||||||
* `rule` - (Required) Can be specified multiple times. Each rule block supports
|
* `managed` - (Optional) USE WITH CAUTION! If enabled all the firewall rules for
|
||||||
fields documented below.
|
this network ACL will be managed by this resource. This means it will delete
|
||||||
|
all firewall rules that are not in your config! (defaults false)
|
||||||
|
|
||||||
|
* `rule` - (Optional) Can be specified multiple times. Each rule block supports
|
||||||
|
fields documented below. If `managed = false` at least one rule is required!
|
||||||
|
|
||||||
The `rule` block supports:
|
The `rule` block supports:
|
||||||
|
|
||||||
@ -62,4 +66,4 @@ The `rule` block supports:
|
|||||||
|
|
||||||
The following attributes are exported:
|
The following attributes are exported:
|
||||||
|
|
||||||
* `aclid` - The ACL ID for which the rules are created.
|
* `ID` - The ACL ID for which the rules are created.
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
<a href="/docs/providers/cloudstack/r/disk.html">cloudstack_disk</a>
|
<a href="/docs/providers/cloudstack/r/disk.html">cloudstack_disk</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li<%= sidebar_current("docs-cloudstack-resource-egress-firewall") %>>
|
||||||
|
<a href="/docs/providers/cloudstack/r/egress_firewall.html">cloudstack_egress_firewall</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-cloudstack-resource-firewall") %>>
|
<li<%= sidebar_current("docs-cloudstack-resource-firewall") %>>
|
||||||
<a href="/docs/providers/cloudstack/r/firewall.html">cloudstack_firewall</a>
|
<a href="/docs/providers/cloudstack/r/firewall.html">cloudstack_firewall</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user