NSX-T Data Center REST API
Add IPPrefixList on a Logical Router (Deprecated)
Adds a new IPPrefixList on a Logical RouterDeprecated:
Please use below Policy APIs.
POST /policy/api/v1/infra/tier-0s/<tier-0-id>/prefix-lists/<prefix-list-id>
Request:
Method:
              POST
            URI Path(s):
              
              
                  
                  /api/v1/logical-routers/<logical-router-id>/routing/ip-prefix-lists
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    IPPrefixList+
  Example Request:
POST https://<nsx-mgr>/api/v1/logical-routers/7a62a0c5-1ea1-4b25-9d43-dce1c0fa4b8c/routing/ip-prefix-lists { "resource_type": "IPPrefixList", "description": "IP prefix list 2", "display_name": "ip-prefix-list2", "tags": [], "prefixes": [ { "action": "DENY", "network": "192.168.220.0/24" }, { "action": "DENY", "network": "192.168.240.0/24" } ] }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    IPPrefixList+