Policy > Security > Service Insertion > Service References

Read service reference

This API can be used to read service reference with the given service-reference-id. 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>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

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

Successful Response:

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

Example Response:

{ "resource_type" : "ServiceReference", "id" : "SR_1", "display_name" : "SR 1", "path" : "/infra/service-references/SR_1", "parent_path" : "/infra/service-references/SR_1", "relative_path" : "SR_1", "marked_for_delete" : false, "partner_service_name" : "dummy service", "enabled" : true, "_create_user" : "admin", "_create_time" : 1535549055517, "_last_modified_user" : "admin", "_last_modified_time" : 1535549055517, "_system_owned" : false, "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

read

Feature:

policy_si

Additional Errors: