Policy > Security > Service Insertion > Service References

Get Groups used in Redirection rules for a given Service Profile.

List of Groups used in Redirection rules for a given Service Profile.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/service-references/<service-reference-id>/service-profiles/<service-profile-id>/group-associations
Request Headers:
n/a
Query Parameters:
PolicySIEnforcementPointRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/service-references/SR_1/service-profiles/SP_1/group-associations

Successful Response:

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

Example Response:

{ "groups": [ { "group": { "target_id": "3d9d1eb9-4191-4e9a-ba27-ee40ed257613", "target_display_name": "default.db group-1", "target_type": "NSGroup", "is_valid": true }, "group_policy_path": "/policy/api/v1/infra/domains/default/groups/db" }, { "group": { "target_id": "6e337a18-0b5b-430d-ade0-c0550edbd323", "target_display_name": "default.web group-1", "target_type": "NSGroup", "is_valid": true }, "group_policy_path": "/policy/api/v1/infra/domains/default/groups/web" } ], "_protection": "NOT_PROTECTED" }

Required Permissions:

read

Feature:

policy_si

Additional Errors: