Skip to main content
Glama

list_tier0_gateways

Retrieve all Tier-0 gateways with HA mode and transit subnet details for VMware NSX network management.

Instructions

List all Tier-0 gateways with HA mode and transit subnets.

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 implementation of the list_tier0_gateways tool, which queries the NSX API and formats the response.
    def list_tier0_gateways(client: NsxClient) -> list[dict]:
        """List all Tier-0 gateways."""
        items = client.get_all("/policy/api/v1/infra/tier-0s")
        return [
            {
                "id": _sanitize(t.get("id", "")),
                "display_name": _sanitize(t.get("display_name", "")),
                "ha_mode": t.get("ha_mode", ""),
                "failover_mode": t.get("failover_mode", ""),
                "transit_subnets": t.get("transit_subnets", []),
                "internal_transit_subnets": t.get("internal_transit_subnets", []),
            }
            for t in items
        ]
  • MCP server handler that retrieves the NSX connection and calls the backend inventory function.
    def list_tier0_gateways(target: str | None = None) -> list[dict]:
        """List all Tier-0 gateways with HA mode and transit subnets.
    
        Args:
            target: Optional NSX Manager target name from config. Uses default if omitted.
        """
        from vmware_nsx.ops.inventory import list_tier0_gateways as _list_tier0s
    
        client = _get_connection(target)
        return _list_tier0s(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