Policy > Networking > Connectivity > Tier-0 Gateways > Routing > Prefix List

Create or update a prefix list

If prefix list for prefix-list-id is not already present, create
a 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/tier-0s/<tier-0-id>/prefix-lists/<prefix-list-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PrefixList+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc/prefix-lists/to-onprem { "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+

Example Response:

{ "resource_type": "PrefixList", "id": "to-onprem", "display_name": "/infra/tier-0s/vmc/prefix-lists/to-onprem", "path": "/infra/tier-0s/vmc/prefix-lists/to-onprem", "parent_path": "/infra/tier-0s/vmc", "relative_path": "to-onprem", "marked_for_delete": false, "prefixes": [ { "action": "PERMIT", "network": "30.1.1.0/24" }, { "action": "DENY", "network": "10.1.1.0/24" } ], "_create_user": "admin", "_create_time": 1525754971782, "_last_modified_user": "admin", "_last_modified_time": 1525754971782, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_t0

Additional Errors: