list_static_routes
List static routes on a Tier-0 or Tier-1 gateway to verify existing routes before creating or deleting, with pagination via limit and offset.
Instructions
[READ] List static routes on a Tier-0 or Tier-1 gateway.
Returns the result envelope; check truncated before calling it complete.
Page it: limit is the page size (1-1000, default 50; 0 or negative is
rejected), offset is how many rows to skip, and the response carries
next_offset — pass that back as offset and stop when it is null. Do not
loop on truncated: that says this page is not the whole collection, so it
stays true on the last page of a walk.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1-1000 (default 50). | |
| offset | No | Rows to skip; pass the previous response's `next_offset`. | |
| target | No | NSX Manager target from config (default if omitted). | |
| tier1_id | Yes | Gateway ID (Tier-0 or Tier-1, per gateway_type), as returned by list_tier0_gateways / list_tier1_gateways. | |
| gateway_type | No | Either "tier0" or "tier1" (default "tier1"). | tier1 |