list_segments
List NSX network segments with type, subnet, admin state, and port count. Use to resolve a segment ID before fetching details or port status.
Instructions
[READ] List all NSX network segments with type, subnet, admin state, and port count.
Returns the result envelope: rows under items, plus returned, limit,
total (the collection's result_count, null when the API omits it),
truncated and hint. Check truncated before calling this the complete
set — when true, more rows exist. Every list tool here returns that shape.
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 first to resolve a segment_id, then get_segment for its ports and linked gateway, or get_logical_port_status for realized state. Distributed firewall rules are not here — use vmware-nsx-security.
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). |