NSX-T Data Center REST API
Add a Service Attachment. (Deprecated)
Adds a new Service attachment. A service attachment represents a pointon NSX entity (Example: Logical Router) to which service instance can be
connected through an InstanceEndpoint.
Deprecated: This API has been deprecated, please use below Policy API
For North-South service insertion
PUT /policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/service-interfaces/<interface-id> PATCH /policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/service-interfaces/<interface-id> PUT /policy/api/v1/infra/tier-1s/<tier-1-id>/locale-services/<locale-service-id>/service-interfaces/<interface-id> PATCH /policy/api/v1/infra/tier-1s/<tier-1-id>/locale-services/<locale-service-id>/service-interfaces/<interface-id> For East-West service insertion
PUT /policy/api/v1/infra/segments/service-segments/<service-segment-id> PATCH /policy/api/v1/infra/segments/service-segments/<service-segment-id>
Request:
Method:
POST
URI Path(s):
/api/v1/serviceinsertion/service-attachments
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceAttachment+
Example Request:
{ "display_name": "Service Attachment 1", "deployed_to": { "target_display_name": "T0_LR", "target_type": "LogicalRouter", "target_id": "d0ceab3f-866b-42d5-a67a-0eedbe604d35" }, "attachment_status": "UP", "local_ips": [ { "ip_addresses": [ "192.168.100.2" ], "prefix_length": 24 } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ServiceAttachment+