NSX-T Data Center REST API

Update a specific IPPrefixList on a Logical Router (Deprecated)

Update a specific IPPrefixList on the specified logical router.
Deprecated:
Please use below Policy APIs.
PUT /policy/api/v1/infra/tier-0s/<tier-0-id>/prefix-lists/<prefix-list-id>

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:

{ "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: