NSX-T Data Center REST API
Add a new BGP Neighbor on a Logical Router (Deprecated)
Add a new BGP Neighbor on a Logical RouterDeprecated:
Please use below Policy APIs.
POST /policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/bgp/neighbors/<neighbor-id>
Request:
Method:
              POST
            URI Path(s):
              
              
                  
                  /api/v1/logical-routers/<logical-router-id>/routing/bgp/neighbors
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    BgpNeighbor+
  Example Request:
POST https://<nsx-mgr>/api/v1/logical-routers/7a62a0c5-1ea1-4b25-9d43-dce1c0fa4b8c/routing/bgp/neighbors { "display_name": "neighbor1", "neighbor_address": "2.2.2.2", "remote_as_num": "200", "address_families": [ { "type" : "IPV4_UNICAST", "enabled" : true, "in_filter_ipprefixlist_id" : "ad879413-dbc3-4952-b77d-28386c3a5363" } ], }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    BgpNeighbor+
  