Closed
Description
Nutanix Cluster Information
Terraform Version
Affected Resource(s)
- nutanix_network_security_rule
Terraform Configuration Files
resource "nutanix_service_group" "service1" {
name = "tf-service-grp-apprule4"
description = "test"
service_list {
protocol = "TCP"
tcp_port_range_list {
start_port = 22
end_port = 22
}
}
}
resource "nutanix_address_group" "address1" {
name = "tf-addr-grp-apprule4"
description = "test"
ip_address_block_list {
ip = "10.10.10.10"
prefix_length = 32
}
}
resource "nutanix_network_security_rule" "apprule" {
name = "tf-sid-app_rule_action_04"
app_rule_action = "APPLY"
allow_ipv6_traffic = false
is_policy_hitlog_enabled = false
description = "test created by terraform"
app_rule_inbound_allow_list {
# ip_subnet = "10.0.0.0"
# ip_subnet_prefix_length = "8"
peer_specification_type = "IP_SUBNET"
#protocol = "ALL"
service_group_list {
kind = "service_group"
uuid = nutanix_service_group.service1.id
}
address_group_inclusion_list {
kind = "address_group"
uuid = nutanix_address_group.address1.id
}
}
app_rule_target_group_filter_params {
name = "AppType"
values = [
"Apache_Spark"
]
}
app_rule_target_group_filter_kind_list = ["vm"]
app_rule_target_group_filter_type = "CATEGORIES_MATCH_ALL"
app_rule_target_group_peer_specification_type = "FILTER"
app_rule_outbound_allow_list {
peer_specification_type = "ALL"
}
}
Debug Output
Panic Output
Expected Behavior
It should not throw API error. msg: 'ip'
2022/03/24 13:55:54 [DEBUG] nutanix_network_security_rule.apprule: apply errored, but we're indicating that via the Error pointer rather than returning it: error creating Nutanix Network Security Rule tf-sid-app_rule_action_04: error: {
"api_version": "3.1",
"code": 422,
"message_list": [
{
"message": "'ip'",
"reason": "INVALID_REQUEST"
}
],
"state": "ERROR"
}
Actual Behavior
Steps to Reproduce
terraform apply
Important Factors
- #0000 <!---Github Issue number --->