create_group
Create an NSX security group by tag, IP, or segment membership to later apply 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.
Args: group_id: Unique id (alphanumerics, hyphens, underscores). display_name: Human-readable name. description: Optional description. tag_scope: NSX tag scope for membership (e.g. 'env'). tag_value: NSX tag value for membership (e.g. 'production'). ip_addresses: IP addresses or CIDRs (e.g. ['10.0.1.0/24']). segment_paths: NSX segment policy paths. target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| group_id | Yes | ||
| tag_scope | No | ||
| tag_value | No | ||
| description | No | ||
| display_name | Yes | ||
| ip_addresses | No | ||
| segment_paths | No |