» avi_securitypolicy

The SecurityPolicy resource allows the creation and management of Avi SecurityPolicy

» Example Usage

resource "avi_securitypolicy" "foo" {
    name = "terraform-example-foo"
    tenant_ref = "/api/tenant/?name=admin"

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the security policy.
  • description - (Optional) Security policy is used to specify various configuration information used to perform distributed denial of service (ddos) attacks detection and mitigation.
  • dns_attacks - (Optional) Attacks utilizing the dns protocol operations.
  • dns_policy_index - (Optional) Index of the dns policy to use for the mitigation rules applied to the dns attacks.
  • network_security_policy_index - (Optional) Index of the network security policy to use for the mitigation rules applied to the attacks.
  • oper_mode - (Optional) Mode of dealing with the attacks - perform detection only, or detect and mitigate the attacks.
  • tcp_attacks - (Optional) Attacks utilizing the tcp protocol operations.
  • tenant_ref - (Optional) Tenancy of the security policy.
  • udp_attacks - (Optional) Attacks utilizing the udp protocol operations.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 40 mins) Used when creating the AMI
  • update - (Defaults to 40 mins) Used when updating the AMI
  • delete - (Defaults to 90 mins) Used when deregistering the AMI

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • uuid - The uuid of the security policy.