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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_dvs_portgroups"
}
}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. |