NSX-T Data Center REST API
Add ServiceProfile for a given Service. (Deprecated)
Adds a new service profile.Deprecated: This API has been deprecated, please use below Policy API
PUT /policy/api/v1/infra/service-references/<service-reference-id>/service-profiles/<service-profile-id> PATCH /policy/api/v1/infra/service-references/<service-reference-id>/service-profiles/<service-profile-id>
Request:
Method:
POST
URI Path(s):
/api/v1/serviceinsertion/services/{service-id}/service-profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
BaseServiceProfile+
GiServiceProfile+
ServiceInsertionServiceProfile+
Example Request:
{ "resource_type": "ServiceInsertionServiceProfile", "display_name": "SP1", "description": "SP for East-West Service Insertion", "vendor_template_id": "e8420012-6861-4c41-b13c-1aba8c98f007", "redirection_action": "PUNT", "attributes": [{ "attribute_type": "STRING", "display_name": "attribute1", "key": "key1", "value": "value1" }, { "attribute_type": "STRING", "display_name": "attribute2", "key": "key2", "value": "value2" } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
BaseServiceProfile+
GiServiceProfile+
ServiceInsertionServiceProfile+