Management Plane API > Security > Services > Service Insertion

Add an InstanceEndpoint for a Service Instance

Adds a new instance endpoint. It belongs to one service instance and is attached
to one service attachment. It represents a redirection target for a Rule.

Request:

Method:
POST
URI Path(s):
/api/v1/serviceinsertion/services/<service-id>/service-instances/<service-instance-id>/instance-endpoints
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
InstanceEndpoint+

Example Request:

POST https://<nsx-mgr>/api/v1/services/65a60890-6f48-418d-a7d5-5aaf65fc4e5b/service-instances/79b29ea5-051a-4ab2-af85-fb6520a9f881/instance-endpoints { "service_attachment_id": "bbb60890-6f48-418d-a7d5-5aaf65fc4e5b", "endpoint_type": "LOGICAL", "display_name": "Appliance 1 Endpoint 1", "target_ips": [ { "ip_addresses": [ "192.168.100.2" ], "prefix_length": 24 } ] }

Successful Response:

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

Example Response:

{ "resource_type": "InstanceEndpoint", "id": "01dfa028-bc90-4be4-bda1-a98b4eb65856", "service_attachment_id": "bbb60890-6f48-418d-a7d5-5aaf65fc4e5b", "service_instance_id": "79b29ea5-051a-4ab2-af85-fb6520a9f881", "display_name": "Appliance 1 Endpoint 1", "endpoint_type": "LOGICAL", "target_ips": [ { "ip_addresses": [ "192.168.100.2" ], "prefix_length": 24 } ] }

Required Permissions:

crud

Feature:

service_insertion

Additional Errors: