NSX-T Data Center REST API

Get NSgroups for a given ServiceProfile. (Deprecated)

Returns list of NSGroups used in Service Insertion rules for a given Service Profile.
Deprecated: This API has been deprecated, for East-West service insertion and chaining at the edge, please use below Policy API
GET /policy/api/v1/infra/service-references/<service-reference-id>/service-profiles/<service-profile-id>/group-associations

Request:

Method:
GET
URI Path(s):
/api/v1/serviceinsertion/services/{service-id}/service-profiles/{service-profile-id}/nsgroups
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Successful Response:

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

Example Response:

{ "resource_type": "ServiceProfileNSGroups", "id": "SP-34ab3b14-5b73-424b-b521-6d1cabd7c151", "display_name": "SP-34ab3b14-5b73-424b-b521-6d1cabd7c151", "nsgroups":[ { "nsgroup":{ "target_display_name":"Grp1", "is_valid":true, "target_type":"NSGroup", "target_id":"d4ecb8de-57e7-4809-b93a-f2f6991ad5ad" }, "nsgroup_policy_path":"/infra/domains/cgw/groups/multiple-expr-1" } ], "_create_time": 1530770939580, "_last_modified_user": "admin", "_system_owned": false, "_protection": "NOT_PROTECTED", "_create_user": "admin", "_last_modified_time": 1530770939345, "_revision": 2 }

Required Permissions:

read

Feature:

service_insertion_config

Additional Errors: