Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple actions example for entitlement #349

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions website/docs/r/entitlement.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ resource "appgatesdp_entitlement" "ping_entitlement" {

condition_logic = "and"
actions {
subtype = "icmp_up"
action = "allow"
# https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml#icmp-parameters-types
types = ["0-16"]
hosts = [
"10.0.0.1",
"10.0.0.0/24",
"hostname.company.com",
"dns://hostname.company.com",
"aws://security-group:accounting"
]
subtype = "tcp_up"
hosts = [
"103.15.3.254/32",
"172.17.3.255/32",
"192.168.2.255/32",
]
ports = ["53"]
}
actions {
action = "allow"
subtype = "udp_up"
hosts = ["192.168.2.255/32"]
ports = ["53"]
mandopaloooza marked this conversation as resolved.
Show resolved Hide resolved
}

app_shortcuts {
Expand Down Expand Up @@ -96,6 +99,7 @@ List of all IP Access actions in this Entitlement.
* `types`: (Optional) ICMP type. Only valid for icmp subtypes.
* `methods`: (Optional) HTTP method. Only valid for http subtypes. Leave it empty to allow all types.
* `monitor`: (Optional) Only available for tcp_up and http_up subtypes. If enabled, Gateways will monitor this action for responsiveness and act accordingly. See admin manual for more details.

### app_shortcuts
Array of App Shortcuts.

Expand Down Expand Up @@ -130,9 +134,6 @@ List of Entitlement Script IDs used for creating App Shortcuts dynamically.
### tags
Array of tags.




## Import

Instances can be imported using the `id`, e.g.
Expand Down
Loading