VMware NSX GET API api/v1/ip-sets default page size 50
book
Article ID: 322572
calendar_today
Updated On:
Products
VMware NSX Networking
Issue/Introduction
Symptoms:
Running the following Management Plane (MP) API call will show only 50 results, due to the default page size being 50:
GET api/v1/ip-sets
Whereas the Policy GET API call returns 1000, due to the default page size being 1000:
GET /policy/api/v1/infra/domains/<domain-id>/groups
The VMware NSX API guide shows the management GET API for api/v1/ip-sets default page size as 1000.
Note: The Policy API does not have an equivalent API to api/v1/ip-sets, as ip-sets are represented as groups in policy.
Environment
VMware NSX-T Data Center VMware NSX-T Data Center 3.x
Cause
The API guide has an incorrect value for the default page size for the GET API api/v1/ip-sets. It shows the default page size as 1000, whereas it should be 50.
Resolution
The API guide will be corrected in a future release to reflect the correct page size of 50.