Resources

zsphere_security_group

Resource definition for ZSvirt Security Group.

zsphere_security_group (Resource)

Resource definition for ZSvirt Security Group.

Schema

Required

  • name (String) Name of the security group.

Optional

  • description (String) Description of the security group.
  • l3_network_uuids (List of String) UUIDs of L3 networks to attach the security group to.
  • rules (Block List) Security group rules. (see below for nested schema)
  • vm_nic_uuids (List of String) UUIDs of VM nics to bind to the security group.

Read-Only

  • attached_l3_network_uuids (List of String) UUIDs of L3 networks that the security group is attached to.
  • ip_version (Number) IP version (4 or 6).
  • state (String) State of the security group.
  • uuid (String) UUID of the security group.

Nested Schema for rules

Optional:

  • action (String) Rule action: ACCEPT or DROP.
  • allowed_cidr (String) Allowed CIDR block.
  • description (String) Description of the rule.
  • dst_ip_range (String) Destination IP range.
  • dst_port_range (String) Destination port range (e.g., '22' or '80-443').
  • priority (Number) Rule priority.
  • protocol (String) Protocol: TCP, UDP, ICMP, or ALL.
  • remote_security_group_uuid (String) Remote security group UUID.
  • src_ip_range (String) Source IP range.
  • state (String) Rule state: Enabled or Disabled.
  • type (String) Rule type: Ingress or Egress.

On this page