NSX-T Data Center REST API

Get logical switches that belong to this Group (Deprecated)

Get logical switches that belong to this Group.
This API is applicable for Groups containing Segment member type.
For Groups containing other member types, an empty list is returned.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX. Deprecated: This rest routine is deprecated. Use /infra/domains/<domain-id>/groups/<group-id>/members/segments instead for effective segment members as LogicalSwitch is not a supported member type.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/domains/{domain-id}/groups/{group-id}/members/logical-switches
/policy/api/v1/global-infra/domains/{domain-id}/groups/{group-id}/members/logical-switches
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/domains/{domain-id}/groups/{group-id}/members/logical-switches
Request Headers:
n/a
Query Parameters:
RealizationListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/domains/d1/groups/g1/members/logical-switches?enforcement_point_path=/infra/sites/default/enforcement-points/ep1

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyGroupMembersListResult+

Example Response:

{ "result_count": 2, "results": [ { "id" : "20c1ac1f-58b5-4241-a352-f8e82c4a8c65", "display_name" : "LS-HR1" }, { "id" : "c07005fe-4a9a-47f1-9a1e-2db65a285124", "display_name" : "LS-HR2" } ] }

Required Permissions:

read

Feature:

policy_grouping

Additional Errors: