Policy > Security > Service Insertion > Service Definitions

Create a Service Definition on given enforcement point.

Create a Service Definition on given enforcement point.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/enforcement-points/<enforcement-point-id>/service-definitions
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceDefinition+

Example Request:

POST https://<policy-mgr>/policy/api/v1/enforcement-points/default/service-definitions { "resource_type":"ServiceDefinition", "description":"NS-Service", "display_name":"NS Service_for_VMC", "tags":[ { "scope":"", "tag":"/infra/tier-0s/vmc/locale-services/default/service-instances/PSI-1" } ], "attachment_point":[ "TIER0_LR" ], "transports":[ "L2_BRIDGE" ], "functionalities":[ "NG_FW" ], "on_failure_policy":"ALLOW", "implementations":[ "NORTH_SOUTH" ], }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ServiceDefinition+

Example Response:

{ "resource_type":"ServiceDefinition", "description":"NS-Service", "id":"748be482-a072-4f26-b707-d6e68fc0de16", "display_name":"NS Service_for_VMC", "tags":[ { "scope":"", "tag":"/infra/tier-0s/vmc/locale-services/default/service-instances/PSI-1" } ], "attachment_point":[ "TIER0_LR" ], "transports":[ "L2_BRIDGE" ], "functionalities":[ "NG_FW" ], "on_failure_policy":"ALLOW", "implementations":[ "NORTH_SOUTH" ], "_create_user":"nsx_policy", "_create_time":1522353953977, "_last_modified_user":"nsx_policy", "_last_modified_time":1522353953977, "_system_owned":false, "_protection":"PROTECTED", "_revision":1 }

Required Permissions:

crud

Feature:

policy_si

Additional Errors: