NSX-T Data Center REST API
Create or update a prefix list
If prefix list for prefix-list-id is not already present, createa prefix list. If it already exists, replace the prefix list for
prefix-list-id.
Note:
Updating existing prefixes require order to be preserved to avoid traffic impact. During PATCH operation,
reordering of existing prefixes may impact routes and eventually datapath.
Order here is crucial and it all depends upon action. If action for every prefix is PERMIT then order may
not impact but if there is DENY prefix then change in ordering could lead to traffic impact.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/infra/routing-config/prefix-lists/{prefix-list-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PrefixList+
Example Request:
{ "prefixes": [ { "network":"30.1.1.0/24", "action":"PERMIT" }, { "network":"10.1.1.0/24", "action":"DENY" } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PrefixList+