Policy > Security > Service Insertion > Service Definitions

Update an existing Service Definition on the given enforcement point

Update an existing Service Definition on the given enforcement point.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/enforcement-points/default/service-definitions/<sd-id> { "resource_type": "ServiceDefinition", "description": "NS-Service Changed Desc", "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" ], "_revision": 1 }

Successful Response:

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

Example Response:

{ "resource_type": "ServiceDefinition", "description": "NS-Service Changed Desc", "id": , "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": 2 }

Required Permissions:

crud

Feature:

policy_si

Additional Errors: