list_static_routes
List static routes on Tier-0 or Tier-1 gateways to verify destinations and next hops before creating or deleting routes. Returns only static routes, not BGP-learned ones.
Instructions
[READ] List static routes on a Tier-0 or Tier-1 gateway.
Returns the result envelope; check truncated before calling it complete.
Use this before create_static_route to avoid an id clash, and before
delete_static_route to confirm the destination and next hops. gateway_type
must match where the route actually lives — querying the wrong tier returns
an empty list, not an error. BGP-learned routes are not here; use
get_bgp_neighbors.
Args: tier1_id: Gateway ID (Tier-0 or Tier-1, per gateway_type), as returned by list_tier0_gateways / list_tier1_gateways. gateway_type: Either "tier0" or "tier1" (default "tier1"). target: NSX Manager target from config (default if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| tier1_id | Yes | ||
| gateway_type | No | tier1 |