Management Plane API > Networking > Logical Routing And Services > Routing Configuration

Update a specific IPPrefixList on a Logical Router

Update a specific IPPrefixList on the specified logical router.

Request:

Method:
PUT
URI Path(s):
/api/v1/logical-routers/<logical-router-id>/routing/ip-prefix-lists/<id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IPPrefixList+

Example Request:

PUT https://<nsx-mgr>/api/v1/logical-routers/7a62a0c5-1ea1-4b25-9d43-dce1c0fa4b8c/routing/ip-prefix-lists/5f22f70e-5725-4df3-9e25-46358642848f { "resource_type": "IPPrefixList", "description": "IP Prefix List 1", "id": "5f22f70e-5725-4df3-9e25-46358642848f", "display_name": "ip-prefix-list1", "tags": [], "prefixes": [ { "action": "DENY", "network": "192.168.120.0/24" }, { "action": "DENY", "network": "192.168.220.0/24" } ], "_revision": 0 }

Successful Response:

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

Example Response:

{ "resource_type": "IPPrefixList", "description": "IP Prefix List 1", "id": "5f22f70e-5725-4df3-9e25-46358642848f", "display_name": "ip-prefix-list1", "tags": [], "prefixes": [ { "action": "DENY", "network": "192.168.120.0/24" }, { "action": "DENY", "network": "192.168.220.0/24" } ], "_last_modified_user": "admin", "_last_modified_time": 1457128860172, "_revision": 1 }

Required Permissions:

crud

Feature:

routing_routers

Additional Errors: