create_group
Creates an NSX security group using tag, IP, or segment membership criteria, then returns the group path for use in 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_id": "<group_id>",
"display_name": "<display_name>"
},
"name": "create_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. |