Policy > Security > Service Insertion > Service References

Create service reference

Create Service Reference representing the intent to consume a given 3rd party
service.
This API is only available when using VMware NSX-T.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/service-references/SR_1 { "resource_type": "ServiceReference", "description": "Test Service Reference", "id": "SR_1", "display_name": "SR_1", "partner_service_name": "DummyServiceDefinition", "enabled": true, "_revision":0 }

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:

crud

Feature:

policy_si

Additional Errors: