Policy > Security > Service Insertion > Service References

Create or update service profile

Create or update Service profile to specify vendor temp- late attributes for 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>/service-profiles/<service-profile-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyServiceProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/service-references/SR-1/service-profiles/SP_1 { "id":"SP_1", "display_name":"SP 1", "vendor_template_name":"test template", "redirection_action":"COPY", "attributes":[], "_revision": 0 }

Successful Response:

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

Example Response:

{ "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:

crud

Feature:

policy_si

Additional Errors: