list_dvs_portgroups
List distributed virtual portgroups with binding type, VLAN, port count, and uplink status. Scope by dvSwitch to verify portgroup creation or survey network configuration before changes.
Instructions
[READ] List distributed virtual portgroups, optionally scoped to one dvSwitch.
Per portgroup: name, parent dvSwitch, binding type (earlyBinding / ephemeral), VLAN setting (id, trunk ranges, or pvlan), configured port count, and whether it is the switch's uplink portgroup. Use to verify create_dvs_portgroup results or to survey network config before changes.
Returns:
The family list envelope {items, returned, limit, total, truncated,
hint}; each item is one portgroup. portgroups is kept as a deprecated
alias for items. Errors return a dict with "error" + hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max portgroups to return (default 200). | |
| offset | No | Skip this many portgroups first (paging). | |
| target | No | vCenter target name from config.yaml; omit to use the default target. | |
| dvs_name | No | dvSwitch name to scope to; omit to list across all switches. |