list_edge_clusters
Retrieve all edge clusters with member count and deployment type details from VMware NSX Manager to manage network infrastructure.
Instructions
List all edge clusters with member count and deployment type.
Args: target: Optional NSX Manager target name from config. Uses default if omitted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- vmware_nsx/ops/inventory.py:209-228 (handler)Actual logic for listing edge clusters from NSX API.
def list_edge_clusters(client: NsxClient) -> list[dict]: """List all edge clusters.""" items = client.get_all("/api/v1/edge-clusters") return [ { "id": _sanitize(ec.get("id", "")), "display_name": _sanitize(ec.get("display_name", "")), "member_count": len(ec.get("members", [])), "deployment_type": ec.get("deployment_type", ""), "members": [ { "transport_node_id": _sanitize( m.get("transport_node_id", "") ), } for m in ec.get("members", []) ], } for ec in items ] - mcp_server/server.py:196-206 (registration)MCP tool wrapper function for listing edge clusters. Note: The tool registration annotation seems to be missing on the wrapper itself in this specific file, although it is intended to be a tool. Wait, I should re-examine the file for `@mcp.tool()`.
def list_edge_clusters(target: str | None = None) -> list[dict]: """List all edge clusters with member count and deployment type. Args: target: Optional NSX Manager target name from config. Uses default if omitted. """ from vmware_nsx.ops.inventory import list_edge_clusters as _list_ecs client = _get_connection(target) return _list_ecs(client)