Add support so that checkpoint_management_access_rule can support directly passing in network and host without the need to create objects.
example
resource "checkpoint_management_access_rule" "test" {
name = "test"
layer = "network"
position = {top="top"}
source = ["10.37.0.0/16"]
destination = ["10.38.0.0/16"]
service = ["443"]
content = ["Any"]
time = ["Any"]
install_on = ["Policy Targets"]
track = {
type = "Log"
accounting = false
alert = "none"
enable_firewall_session = false
per_connection = true
per_session = false
}
action_settings = {}
custom_fields = {}
vpn = "Any"
}
checkpoint_management_access_rule.test will be created
- resource "checkpoint_management_access_rule" "test" {
- action = "Drop"
- content = [
- content_direction = "any"
- content_negate = false
- destination = [
- destination_negate = false
- enabled = true
- id = (known after apply)
- ignore_errors = false
- ignore_warnings = false
- install_on = [
- layer = "network"
- name = "test"
- position = {
- service = [
- service_negate = false
- source = [
- source_negate = false
- time = [
- track = {
- "accounting" = "false"
- "alert" = "none"
- "enable_firewall_session" = "false"
- "per_connection" = "true"
- "per_session" = "false"
- "type" = "Log"
}
- vpn = "Any"
}
Error: Failed to execute API call
│ Status: 404 Not Found
│ Code: generic_err_object_not_found
│ Message: Requested object [10.37.0.0/16] not found
│
│ with checkpoint_management_access_rule.test,
│ on rules.tf line 1, in resource "checkpoint_management_access_rule" "test":
│ 1: resource "checkpoint_management_access_rule" "test" {
Add support so that checkpoint_management_access_rule can support directly passing in network and host without the need to create objects.
example
resource "checkpoint_management_access_rule" "test" {
name = "test"
layer = "network"
position = {top="top"}
source = ["10.37.0.0/16"]
destination = ["10.38.0.0/16"]
service = ["443"]
content = ["Any"]
time = ["Any"]
install_on = ["Policy Targets"]
track = {
type = "Log"
accounting = false
alert = "none"
enable_firewall_session = false
per_connection = true
per_session = false
}
action_settings = {}
custom_fields = {}
vpn = "Any"
}
checkpoint_management_access_rule.test will be created
]
]
]
}
]
]
]
}
}
Error: Failed to execute API call
│ Status: 404 Not Found
│ Code: generic_err_object_not_found
│ Message: Requested object [10.37.0.0/16] not found
│
│ with checkpoint_management_access_rule.test,
│ on rules.tf line 1, in resource "checkpoint_management_access_rule" "test":
│ 1: resource "checkpoint_management_access_rule" "test" {