NSX-T Data Center REST API
List NSGroups (Removed in 9.0)
List the NSGroups in a paginated format. The page size is restrictedto 50 NSGroups so that the size of the response remains small even
in the worst case.
Optionally, specify valid member types as request parameter to filter NSGroups.
Deprecated: This API is deprecated. Please use below policy API /infra/domains/
Request:
Method:
GET
URI Path(s):
/api/v1/ns-groups
Request Headers:
n/a
Query Parameters:
NSGroupListRequestParameters+
Request Body:
n/a
Example Request:
## Get all NSGroups without any filtering GET https://<nsx-mgr>/api/v1/ ns-groups/ ## Get NSGroups that have all specified member-types. NSGroups are filtered ## based on member_types input GET https://<nsx-mgr>/api/v1/ ns-groups?member_types=LogicalPort,LogicalSwitch,VirtualMachineSuccessful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
NSGroupListResult+