Skip to main content
Glama

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
NameRequiredDescriptionDefault
targetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • 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 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zw008/VMware-NSX'

If you have feedback or need assistance with the MCP directory API, please join our Discord server