create_group
Create an NSX security group with optional tag, IP, or segment membership criteria to define dynamic groups for firewall rules.
Instructions
[WRITE] Create an NSX security group with optional membership criteria.
Returns the created group dict (id, path, expression, ...). Criteria are ORed — NSX only permits AND between same-member-type Conditions: tag_scope/tag_value matches VMs carrying that tag, ip_addresses matches IPs or CIDRs, segment_paths every VM on those segments. Use it before create_dfw_rule, which references the group path; confirm members with get_group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional NSX Manager target from config. | |
| group_id | Yes | Unique id (alphanumerics, hyphens, underscores). | |
| tag_scope | No | NSX tag scope for membership (e.g. 'env'). | |
| tag_value | No | NSX tag value for membership (e.g. 'production'). | |
| description | No | Optional description. | |
| display_name | Yes | Human-readable name. | |
| ip_addresses | No | IP addresses or CIDRs (e.g. ['10.0.1.0/24']). | |
| segment_paths | No | NSX segment policy paths. |