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

Network Security Policy Error #685

Open
AlexDias95 opened this issue Sep 11, 2024 · 0 comments
Open

Network Security Policy Error #685

AlexDias95 opened this issue Sep 11, 2024 · 0 comments
Labels

Comments

@AlexDias95
Copy link

We are trying to test Nutanix terraform provider and we have faced problems with the nutanix_network_security_rule resource.

Our Nutanix and API version are the following:

image

image

The provider version we are using is 1.9.5.

The code that we are using for this example is the following:

resource "nutanix_network_security_rule" "isolation" {
    name        = "example-isolation-rule"
    description = "Isolation Rule Example"
 
    isolation_rule_action = "APPLY"
 
    isolation_rule_first_entity_filter_kind_list = ["vm"]
    isolation_rule_first_entity_filter_type      = "CATEGORIES_MATCH_ALL"
    isolation_rule_first_entity_filter_params {
        name   = "Environment"
        values = ["Dev"]
    }
 
    isolation_rule_second_entity_filter_kind_list = ["vm"]
    isolation_rule_second_entity_filter_type      = "CATEGORIES_MATCH_ALL"
    isolation_rule_second_entity_filter_params {
        name   = "Environment"
        values = ["Production"]
    }
}

The error we get is:

│ Error: error creating Nutanix Network Security Rule example-isolation-rule: error: {
│   "api_version": "3.1",
│   "code": 410,
│   "message_list": [
│     {
│       "message": "The network security rule APIs are no longer supported. Please use the network security policy APIs instead. Refer to the Nutanix API documentation for additional details.",
│       "reason": "GONE_ERROR"
│     }
│   ],
│   "state": "ERROR"
│ }
│
│   with nutanix_network_security_rule.isolation,
│   on file.tf line 1, in resource "nutanix_network_security_rule" "isolation":
│    1: resource "nutanix_network_security_rule" "isolation" {
│
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants