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.
zsphere_instance
This resource allows you to manage virtual machine (VM) instances in ZStack. A VM instance represents a virtualized compute resource that can be created, updated, and deleted. You can define the VM's properties, such as its name, image, network configuration, disks, and GPU devices.
zsphere_tag
This resource allows you to manage tags in ZSvirt. A tag is a label that can be attached to resources for organization and filtering. Tags have a name, value, color, and optional description.