get_group
Retrieve a security group's membership criteria and effective member count, including up to 50 VM members, to assess its true size.
Instructions
[READ] Get details of a security group including membership criteria and effective members.
Returns one group object: its expression rules, member_count (the group's real size), and members — an envelope holding at most the first 50 effective VirtualMachine members, whose truncated flag says whether more were withheld. Report member_count as the size; counting members.items reports the sample instead. Use it once list_groups has narrowed to one id; membership is evaluated by NSX, so a tag written with apply_vm_tag may take seconds to appear.
Args: group_id: Group identifier (e.g. 'web-tier-vms'). target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| group_id | Yes |