Policy > Security > Service Insertion > Service References

List service profiles

List all the service profiles available for given service reference
This API is only available when using VMware NSX-T.

Request:

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

Example Request:

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

Successful Response:

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

Example Response:

{ "sort_ascending" : true, "sort_by" : "display_name", "result_count" : 1, "results" : [ { "resource_type" : "PolicyServiceProfile", "id" : "SP_1", "display_name" : "SP 1", "path" : "/infra/service-references/SR_1/service-profiles/SP_1", "parent_path" : "/infra/service-references/SR_1", "relative_path" : "SP_1", "marked_for_delete" : false, "redirection_action" : "COPY", "vendor_template_name" : "test template", "attributes" : [ ], "_create_user" : "admin", "_create_time" : 1535550281517, "_last_modified_user" : "admin", "_last_modified_time" : 1535550281517, "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_revision" : 0 } ] }

Required Permissions:

read

Feature:

policy_si

Additional Errors: