create_tier1_gateway
Create a Tier-1 gateway to provide routing between segments, with optional Tier-0 uplink. Set route advertisement to make connected subnets reachable from outside.
Instructions
[WRITE] Create a Tier-1 gateway to route segments, optionally uplinked to a Tier-0.
Use this before create_segment when the segment needs routing; get tier0_path from list_tier0_gateways and edge_cluster_path from list_edge_clusters first. Without route_advertisement, connected subnets stay unreachable from outside until it is set here or via update_tier1_gateway. The same tier1_id overwrites (PUT). Returns the created gateway dict, else {"error", "hint"}; verify with get_tier1_gateway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | NSX Manager target from config (default if omitted). | |
| tier1_id | Yes | Unique id (alphanumerics, hyphens, underscores); becomes /infra/tier-1s/<tier1_id>. | |
| tier0_path | No | Parent Tier-0 path, e.g. "/infra/tier-0s/<t0-id>"; omit for a standalone gateway. | |
| display_name | Yes | UI display name. | |
| edge_cluster_path | No | Required for NAT and other stateful services. | |
| route_advertisement | No | Comma-separated: TIER1_CONNECTED, TIER1_STATIC_ROUTES, TIER1_NAT, TIER1_LB_VIP, TIER1_LB_SNAT, TIER1_DNS_FORWARDER_IP, TIER1_IPSEC_LOCAL_ENDPOINT. |